Random scraps of PHP I want to keep handy