update php snippets with 2 useful snips