fixed typo in php snippets