class Pipe (View source)

The Pipe class handles the chain of processes to manipulate variable values.

Methods

static string
process(string $value, array $functions)

Processes an array of functions applied to a given value.

Details

static string process(string $value, array $functions)

Processes an array of functions applied to a given value.

$functions is an array of associative arrays with function name and parameters. In case the function name is a mathematical operator, the value is just the numeric value instead of an array.

Parameters

string $value
array $functions

Return Value

string The modified $value