Add php function snippet