(PHP 4 >= 4.0.6, PHP 5, PHP 7, PHP 8) mb_substr — Get part of string Description ¶ mb_substr( string $string, int $start, ?int $length = null, ?string $encoding = null ): string Performs a multi-byte safe substr() operation based on number of characters. Position is counted from the beginning of string. First character's position is 0. Second character position is 1, and so on. Parameters ¶ stri..