php snippets for examples and memorization