ProcessUtils
in package
ProcessUtils is a bunch of utility methods.
This class was originally copied from Symfony 3.
Table of Contents
- escapeArgument() : string
- Escapes a string to be used as a shell argument.
- isSurroundedBy() : bool
- Is the given string surrounded by the given character?
Methods
escapeArgument()
Escapes a string to be used as a shell argument.
public
static escapeArgument(string $argument) : string
Parameters
- $argument : string
Return values
string —isSurroundedBy()
Is the given string surrounded by the given character?
protected
static isSurroundedBy(string $arg, string $char) : bool
Parameters
- $arg : string
- $char : string