Added new function to PHP snippets file