Add func snippet to php.