\think\processUtils

Summary

Methods
Properties
Constants
escapeArgument()
validateInput()
No public properties found
No constants found
No protected methods found
No protected properties found
N/A
isSurroundedBy()
No private properties found
N/A

Methods

escapeArgument()

escapeArgument(string  $argument) : string

转义字符串

Parameters

string $argument

Returns

string —

validateInput()

validateInput(string  $caller, mixed  $input) : string

验证并进行规范化Process输入。

Parameters

string $caller
mixed $input

Throws

\InvalidArgumentException

Returns

string —

isSurroundedBy()

isSurroundedBy(mixed  $arg, mixed  $char) : mixed

Parameters

mixed $arg
mixed $char

Returns

mixed —