1. PHP and Standards: arg_separator.output

    PHP’s configuration directive arg_separator.output allows you to tell PHP how it should separate arguments in a URL and has a default value of ‘&’. The directive affects all URLs that are generated or modified automatically by PHP. The only time this is likely to affect us is when we use PHP Session Handling along with […]

  2. Title Case in PHP

    The PHP functions strtoupper and ucwords capitalise all characters in a string, and the first letter of every word in a string, respectively. However, there exists in the standard PHP library no way of achieving Title Case, which involves capitalising all words except for small words (such as conjunctions) when they are not the first […]

  3. PHP Speed Optimizations

    Nathan Wong claims that single quotes are faster than double quotes in PHP. In the recent blog post, he attempts to prove that PHP is able to parse and execute string constants faster if they use single quotes, than if double quotes are used. Benchmark results and source code are provided. The reasoning behind this […]

  4. ‘clone’ for PHP4

    Steven Wittens from describes a way of implementing a clone function in PHP4 to emulate PHP5′s clone behaviour. The idea is to write object-oriented programs that will behave the same way in both PHP4 and PHP5. Obviously, the drawback of doing so is that you cannot take advantage of PHP5-only features, such as object […]

  5. Magic Quotes Headaches

    I am frequently amazed and/or frustrated when I encounter online applications which have problems with Magic Quotes and string escaping. Even commercial PHP applications I use on a daily basis have such problems. The most common symptom is that slashes (/) end up appearing throughout content. For example: What’s the slash for? However, there are […]

  6. Closed-Source PHP

    To some developers, one of the large drawbacks to PHP is that it provides no official method for distributing closed-source, binary web applications. Developers of commercial applications often want to keep their source code private, for various reasons. There are, however, some third-party solutions. From the people that brough you the PHP interpreter comes the […]