Get part of a string
Usage
// basic usage
$string = $wireTextTools->substr(string $str, int $start);
// usage with all arguments
$string = $wireTextTools->substr(string $str, int $start, $length = null);
Arguments
Name | Type(s) | Description |
---|---|---|
str | string | |
start | int | |
length (optional) | int, null | Max chars to use from str. If omitted or NULL, extract all characters to the end of the string. |
Return value
string
WireTextTools methods and properties
API reference based on ProcessWire core version 3.0.236