Technical Docs

Search Documentation

Function: tribe_substr

Get a substring, using multibyte functions if available

Located at src/functions/multibyte.php (Line: 79)

Parameters summary

(string) $string string to crop
(int) $start start position
(int) $length (optional) substring length

Return value summary

(int) substring

Examples

int tribe_substr ( string $string, int $start, int $length = null )