how to create a user function in php code example Example: execute function php function functionName() { //code to be executed; } functionName();