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.
Scope-defining Functions
Most of the paRSer functions define their own scopes, and they can be hierarchically layered.
Functions Manipulating Variables
Define or change variables using functions.
Functions Manipulating Files
Learn how to use functions that use file paths as inputs.