What is PHP Function?

PHP Function is a set of statements that perform a specific task. A function usually takes input arguments, perform a specific action on them and returns the result.


Example of function in PHP: