Lines Matching defs:length
35 * - mb_strlen - Get string length
552 trigger_error('The length of each segment must be greater than zero', \E_USER_WARNING);
556 throw new \ValueError('Argument #2 ($length) must be greater than 0');
575 $length = mb_strlen($string, $encoding);
577 for ($i = 0; $i < $length; $i += $split_length) {
612 public static function mb_substr($s, $start, $length = null, $encoding = null)
616 return (string) substr($s, $start, null === $length ? 2147483647 : $length);
626 if (null === $length) {
627 $length = 2147483647;
628 } elseif ($length < 0) {
629 $length = \iconv_strlen($s, $encoding) + $length - $start;
630 if ($length < 0) {
635 return (string) \iconv_substr($s, $start, $length, $encoding);