Function __global->cms_escapeshellarg
Definitions
sources/global3.php
- Prepare an argument for use literally in a command. Works around common PHP restrictions.
- Visibility: public
- Is abstract?: No
- Is static?: No
- Is final?: No
- Returns: string
Parameters
| Name | Type | Passed by reference? | Variadic? | Default | Set | Range | Description |
|---|---|---|---|---|---|---|---|
| $arg | string | No | No | required parameter | N/A | N/A | The argument |
Returns
- Escaped
- Type: string
- Set: N/A
- Range: N/A
Preview
Code (PHP)
/**
* Prepare an argument for use literally in a command. Works around common PHP restrictions.
*
* @param string $arg The argument
* @return string Escaped
*/
function cms_escapeshellarg(string $arg) : string
* Prepare an argument for use literally in a command. Works around common PHP restrictions.
*
* @param string $arg The argument
* @return string Escaped
*/
function cms_escapeshellarg(string $arg) : string
