Updated the php snippets