php function for beginner code example Example: function php function functionName() { //code to be executed; }