Blog

Author Archive


PHP Classes and Objects Examples
Posted on March 22, 2018 in PHP by Matt Jennings

/*
public – the property or method can be accessed from everywhere. This is default
protected – the property or method can …

Read more


Most Popular PHP String Functions
Posted on March 21, 2018 in PHP by Matt Jennings

// Example string
$blog = ‘Your blog is Excellent!’;

// returns ‘our blog is Excellent!’
substr($blog, 1);

// returns ‘xcellent!’
substr($blog, -9);

// returns ‘Your’
substr($blog, 0, …

Read more


MySQL Queries Cheat Sheet
Posted on December 31, 2017 in MySQL by Matt Jennings

Knowledge gained from Learn SQL and MySQL in 3 Hours by Umang Shah (Udemy class).

super_market (database and …

Read more


Determine if a String Contains a Palindrome in JavaScript
Posted on December 7, 2017 in Algorithms, JavaScript, Regular Expressions by Matt Jennings

Determine if a string contains a palindrome in JavaScript.
Strip out any non Latin alphabetic characters if needed.

var str = ‘!Noel …

Read more


In JavaScript Sort Numbers using the sort() Function
Posted on November 28, 2017 in Algorithms, JavaScript by Matt Jennings

var numbers = [2, 1, 111, 222, 33, -2];

// Output is [-19, -2, 1, 33, 111, 222]
// because the ‘return …

Read more