Updated PHP snippets