Get a parameter specified by the given index
The function will return null if the key is not available
By default we will cast the return value into a string, if you want
something else specify it by passing the wanted type.
public getParameter ( mixed $index, string $type = 'string', mixed $defaultValue = null ) : mixed | ||
$index | mixed | The index of the parameter. |
$type | string | The return type, possible values are: bool, boolean, int, integer, float, double, string, array. |
$defaultValue | mixed | The value that should be returned if the key is not available. |
Результат | mixed |