collection of simple php snippets