Intelligent php snippets