Function
escapeshellcmd
Synopsis
escapeshellcmd(string): string
- Area
Runtime\PS\Exec\escapeshellcmdareas
Description
escapeshellcmd returns $command with the shell metacharacters in it backslash-escaped, leaving quotes that come in pairs alone; escapeshellarg is the one to reach for, since this leaves a quoted argument's own contents live.
Usage
$value = escapeshellcmd($arguments);
$fn = escapeshellcmd(...);