public function __invoke(mixed
$value,
[int
$recurse = self::RECURSE_NONE] )
Parameters
$value
—
mixed
$recurse
—
int
Expects one of the recursion constants; used to decide whether or not to recurse the given value when escaping
Returns
mixed
Given a scalar, a scalar value is returned. Given an object, with the $recurse flag not allowing object recursion, returns a string. Otherwise, returns an array.