Initialise String

Initialise the String objet using the static set() method.

$string = Str::set('Quick Fox');
$string->upper(); // Returns QUICK FOX

Methods can be chained.

Str::set('hi')->append('john appleby', true)->title();
// Returns "Hi John Appleby"

String are automatically converted to UTF-8 when initialised.

Last updated