How to write a function in PHP 5
A function is a block of statements that can be used repeatedly in a program.
A function will not execute immediately when a page loads.
A function will be executed by a call to the function.
Syntax
function functionName() {
code to be executed;
}
Please watch below video
A function will not execute immediately when a page loads.
A function will be executed by a call to the function.
Syntax
function functionName() {
code to be executed;
}
Please watch below video