writing functions in php code example
Example 1: function php
function functionName() {
//code to be executed;
}
Example 2: execute function php
function functionName() {
//code to be executed;
}
functionName();
function functionName() {
//code to be executed;
}
function functionName() {
//code to be executed;
}
functionName();