If you are using array_key_exists() instead of in_array(), believe it or not, it is a good choice you made. array_key_exists() is much faster than in_array(). array_key_exists($key, $array); // ideal in_array( $key, array_keys( $array ) ) // This creates an array Continue reading PHP – array_key_exists() vs in_array()
An email address from Google’s Gmail can be transformed in various ways into different looking email addresses while still going to the same account. A Gmail user can do the following to have multiple email addresses: Using a plus address: Continue reading PHP – Gmail Address Normalization
The General Sibling Selector ~ selects all elements that are siblings of a specified element. The following example selects all <p> elements that are siblings of <div> elements: The Adjacent Sibling Selector + selects all elements that are the adjacent siblings of a specified element. The following example Continue reading s What is the difference between ‘+’ and ‘~’ sibling selectors?
Big O notation is used in Computer Science to describe the time complexity of an algorithm. The best algorithms will execute the fastest and have the simplest complexity. Algorithms don’t always perform the same and may vary based on the Continue reading What is Big O Notation?