WP_CLI\Utils
args_to_str()
Composes positional arguments into a command string.
Хуков нет.
Возвращает
Строку
.
Использование
args_to_str( $args );
- $args(массив) (обязательный)
- Positional arguments to compose.
Код args_to_str() args to str WP-CLI 2.8.0-alpha
function args_to_str( $args ) { return ' ' . implode( ' ', array_map( 'escapeshellarg', $args ) ); }