Modify php snippets