Add snippet to comment PHP function