__callStatic()
__callStatic(string $name, array<mixed,mixed> $arguments) : \Stringy\Stringy
Creates an instance of Stringy and invokes the given method with the
rest of the passed arguments. The optional encoding is expected to be
the last argument. For example, the following:
StaticStringy::slice('fòôbàř', 0, 3, 'UTF-8'); translates to
Stringy::create('fòôbàř', 'UTF-8')->slice(0, 3);
The result is not cast, so the return value may be of type Stringy,
integer, boolean, etc.
Parameters
| string |
$name |
|
| array<mixed,mixed> |
$arguments |
|
Throws
- \BadMethodCallException
Returns
\Stringy\Stringy