PHP Traits for Implementing Interfaces
PHP 5.4 introduced traits. Traits are in many ways like code-assisted copy and paste. They are ways to mix code into a class without inheritance. But what are they good for? When should they be used?
Apache Mod Rewrite and PHP
How to check if Apache's mod_rewrite module is installed on your server directly inside your PHP script.
URL Fragment not Accessible to PHP
The fragment part of a URL or web address is not sent to servers to be accessible by scripting languages such as PHP.
Bitwise Math Tool
I programmed a bitwise math tool that checks an integer for stored flags.
Importing Methods from an unrelated Class in PHP5
Sometimes you need to steal a method from an unrelated class without becoming a child. Here's how.
Unicode Data with PHP 5 and MySQL 4.1
Internationalization is simple with a litlle advanced preparation.
MySQL Sort Order with NULL
Learn how to force NULL values to the end of a sorted list
MySQL Arbitrary Ordering
Order your results in any way you choose using the CASE clause
Setting bits and flags in PHP
A function for setting bits regardless of current state.