Introduction
Functions are an aspect of programming used to repeat commonly used algorithms (scripts) easily and quickly. Functions, may both receive data via parameters and also return data. However A function is not required to return data and/or receive data.
In PHP a function is declared with the key word function:
| 1 | function functionName() { |
| 2 | |
| 3 | //do something here |
| 4 | |
| 5 | } |
