$methodArgs
$methodArgs : string[]
A mapping of method names to the numbers of arguments it accepts. Each should be two more than the equivalent Stringy method. Necessary as static methods place the optional $encoding as the last parameter.
Class StaticStringy
$methodArgs : string[]
A mapping of method names to the numbers of arguments it accepts. Each should be two more than the equivalent Stringy method. Necessary as static methods place the optional $encoding as the last parameter.
__callStatic(string $name, array $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.
string | $name | |
array | $arguments |