Each function performs a specific action such as retrieving information, iterating through data, or exporting results. Depending on its type, a function may create new scopes or manipulate files and variables.
A function is defined by its name and a set of parameters. The general syntax is:
$FunctionName( body )
The body of a function is determined by its definition. Parameters are always expressions, and in most cases, the final part of the body is text that will be interpreted.