Some helpful Php Snippets