What does PHP stand for?

With a name like “PHP: Hypertext Preprocessor” you can be sure that PHP will have good support for recursion. A recursive function is simply a function that calls itself. You don’t need to do anything special in the function’s definition Read More …

Are you 100% sure that your code works?

During private pilot flight training every student must complete a cross-country flight at night over a distance of at least 100 nautical miles total. A student of mine came to this point in his training and we planned a cross-country Read More …

A quick introduction to PHP anonymous functions

If you haven’t used the anonymous functions introduced in PHP 5.3 you are missing out on a powerful tool. In this simple example we are given an array of names to display. But some of the names are not capitalized Read More …

Understanding PHP DateTime

Handling the date and time in a program is not as straightforward as it may seem. Months can have a different number of days, and leap years add a day depending on the year. Then there are leap seconds from Read More …