User-Defined PHP Functions
In this lesson we shortly will consider writing custom functions. Who watched this lesson, you wouldn’t know something new. But this lesson needs because very soon we will write a lot of our custom functions.
Function declaration in php begins from function keyword. Next function name follows and parameters in brackets. Function can work without parameters. In braces there is function body.