Function __global->post_param_string
Definitions
sources/global2.php
- Get the value of the specified POST parameter (i.e. like $_POST[$name]) if it is passed, or the default otherwise.Implements additional security over the direct PHP access mechanism which should not be used.If the requested POST parameter is an array, it will be returned as a comma-delimited string.
- Is abstract?: No
- Is static?: No
- Is final?: No
- Return: string
Parameters
Name | Type | Default | Set | Range | Description |
---|---|---|---|---|---|
$name | ID_TEXT | required parameter | N/A | N/A | The name of the parameter to get |
$default | ?~mixed | False | N/A | N/A | The default value to give the parameter if the parameter value is not defined (null: allow missing parameter) (false: give error on missing parameter) |
$filters | integer | 7871 | N/A | N/A | A bitmask of INPUT_FILTER_* filters |
Return
- The parameter value (null: missing)
- Type: ?string
- Set: N/A
- Range: N/A
sources/minikernel.php
- Get the value of the specified POST key, if it is found, or the default otherwise.
- Is abstract?: No
- Is static?: No
- Is final?: No
- Return: string
Parameters
Name | Type | Default | Set | Range | Description |
---|---|---|---|---|---|
$name | ID_TEXT | required parameter | N/A | N/A | The name of the parameter to get |
$default | ?~mixed | False | N/A | N/A | The default value to give the parameter if the parameter value is not defined (null: allow missing parameter) (false: give error on missing parameter) |
Return
- The value of the parameter (null: not there, and default was null)
- Type: ?string
- Set: N/A
- Range: N/A