Improved php snippets.