Useful and common snippets of PHP