Here is a collection of some of the more useful PHP snippets that could be beneficial to your project or just for the sake of interest. Keep in mind that the majority of these scripts are very old (some dating back to 2002) and as such compatibility with modern versions of PHP is not assured. Any corrections or revisions would be appreciated.

As of March 2015, all downloads have been moved to GitHub to make them easier to maintain.