W3cubDocs

/Laravel 8

ProcessUtils

class ProcessUtils (View source)

ProcessUtils is a bunch of utility methods.

This class was originally copied from Symfony 3.

Methods

static string escapeArgument(string $argument)

Escapes a string to be used as a shell argument.

static bool isSurroundedBy(string $arg, string $char)

Is the given string surrounded by the given character?

Details

static string escapeArgument(string $argument)

Escapes a string to be used as a shell argument.

Parameters

string $argument

Return Value

string

static protected bool isSurroundedBy(string $arg, string $char)

Is the given string surrounded by the given character?

Parameters

string $arg
string $char

Return Value

bool

© Taylor Otwell
Licensed under the MIT License.
Laravel is a trademark of Taylor Otwell.
https://laravel.com/api/8.x/Illuminate/Support/ProcessUtils.html