Parse
  • Get started
    • Parser utilities for PHP
  • Request
    • HTTP Request input parser
    • Request SERVER vars
    • Request URL vars
    • Request GLOBAL vars
  • Route
    • Dispatch
  • Str
    • String parser
    • Initialise String
    • Case manipulators
    • Content slimmers
  • Dump
    • Output formatter
Powered by GitBook
On this page
  1. Str

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.

PreviousString parserNextCase manipulators

Last updated 2 years ago