Str::__call()

mixed __call(string $method, array $parameters) Dynamically handle calls to the class. Parameters string $method array $parameters Return Value mixed Exceptions BadMethodCallException

Str::words()

static string words(string $value, int $words = 100, string $end = '...') Limit the number of words in a string. Parameters string $value int $words string $end Return Value string

Str::upper()

static string upper(string $value) Convert the given string to upper-case. Parameters string $value Return Value string

Str::ucfirst()

static string ucfirst(string $string) Make a string's first character uppercase. Parameters string $string Return Value string

Str::title()

static string title(string $value) Convert the given string to title case. Parameters string $value Return Value string

Str::substr()

static string substr(string $string, int $start, int|null $length = null) Returns the portion of string specified by the start and length parameters. Parameters string $string int $start int|null $length Return Value string

Str::studly()

static string studly(string $value) Convert a value to studly caps case. Parameters string $value Return Value string

Str::startsWith()

static bool startsWith(string $haystack, string|array $needles) Determine if a given string starts with a given substring. Parameters string $haystack string|array $needles Return Value bool

Str::snake()

static string snake(string $value, string $delimiter = '_') Convert a string to snake case. Parameters string $value string $delimiter Return Value string

Str::slug()

static string slug(string $title, string $separator = '-') Generate a URL friendly "slug" from a given string. Parameters string $title string $separator Return Value string