Self-written PHP snippets