Collection of php snippets