Name
escapeshellarg
Synopsis
string escapeshellarg(string argument
)
Properly escapes argument
so it can
be used as a safe argument to a shell function. When directly passing
user input (such as from forms) to a shell command, you should use
this function to escape the data to ensure that the argument isn’t a
security risk.
Get Programming PHP, 3rd Edition now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.