escapeshellarg

Supported Versions: PHP 4 >= 4.0.3, PHP 5, PHP 7, PHP 8
Escape a string to be used as a shell argument
<?php escapeshellarg(string $arg): string
<?php         $arguments = array_map(static function (string $arg): string {

            return escapeshellarg($arg);

        }, $arguments);



        try {