Create phpfunctions