function():A set of specific program and source code which complete a specific task is function.
Function separates the complexity of a large program and provides a modular approach. There are two type of function user define function and library function. Now focus on user defines function and try to understand.
Syntex of PHP function :function functionName()
code to be executed;
Complete Example of PHP Function
<meta charset="utf-8" />