Building a PHP Profiler

What is a PHP Profiler? A profiler quickly becomes an absolute requirement for any large PHP project. Profiling provides the tools to look at your apps performance at different points within your code. By analyzing the time it takes to Read More …

Building a Select or Other input with PHP and jQuery

A select or other input is a great way to represent a list of common options but still give the user a chance to enter some other value entirely. It is a dropdown select field with options that provides a text Read More …

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 …

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 …

You don’t need to include() files in PHP

Autoloading was introduced in PHP 5 to give developers a simple way to include classes from other files without having to worry about putting include statements everywhere. Take a look at this simple application below. include_once() is used to include Read More …