WP_CLI\Utils
args_to_str()
Composes positional arguments into a command string.
No Hooks.
Returns
String.
Usage
args_to_str( $args );
- $args(array
) (required) - Positional arguments to compose.
args_to_str() args to str code WP-CLI 2.13.0-alpha
function args_to_str( $args ) {
return ' ' . implode( ' ', array_map( 'escapeshellarg', $args ) );
}