Supported Versions: PHP 4 >= 4.0.6, PHP 5, PHP 7, PHP 8
Get part of string
<?php mb_substr(    string $string,    int $start,    ?int $length = null,    ?string $encoding = null): string
<?php                             $stub->type = Stub::TYPE_STRING;

                            $stub->class = Stub::STRING_UTF8;

                            $stub->cut = $cut;

                            $stub->value = mb_substr($v, 0, $maxString, 'UTF-8');

                        } else {

                            continue 2;

                        }
<?php                     $str .= "\n";

                }

                if (0 < $this->maxStringWidth && $this->maxStringWidth < $len = mb_strlen($str, 'UTF-8')) {

                    $str = mb_substr($str, 0, $this->maxStringWidth, 'UTF-8');

                    $lineCut = $len - $this->maxStringWidth;

                }

                if ($m && 0 < $cursor->depth) {