Str
class Str extends Str
Methods
Converts number to its ordinal English form.
Converts line breaks to a standard \r\n pattern.
Removes the starting slash from a class namespace \
Generates a class ID from either an object or a string of the class name.
Returns a class namespace
If $string begins with any number of consecutive symbols, returns the number, otherwise returns 0
Details
at line 17
static string
ordinal(int $number)
Converts number to its ordinal English form.
This method converts 13 to 13th, 2 to 2nd ...
at line 40
static string|string[]|null
normalizeEol(string|string[] $string)
Converts line breaks to a standard \r\n pattern.
at line 50
static mixed|string
normalizeClassName(mixed $name)
Removes the starting slash from a class namespace \
at line 65
static string
getClassId($name)
Generates a class ID from either an object or a string of the class name.
at line 81
static bool|string
getClassNamespace($name)
Returns a class namespace
at line 96
static int
getPrecedingSymbols(string $string, string $symbol)
If $string begins with any number of consecutive symbols, returns the number, otherwise returns 0