Just like any other language PHP also, provides the function facility.
What are functions?
To do repetitive, complex or out of sequence one time calculation, we create a function. whenever we need to do the certain calculation we just make a call to the function.
Functions are widely used concepts present in almost every scripting language. They make the code look simpler and easy to maintain.
The PHP functions are basically of two types.
- User Defined functions
- Inbuilt functions
Lets us now learn about these functions one by one.

