| @@ 5113-5119 (lines=7) @@ | ||
| 5110 | return null; |
|
| 5111 | } |
|
| 5112 | ||
| 5113 | if ($offset || $length !== null) { |
|
| 5114 | $strTmp = self::substr($str, $offset, $length); |
|
| 5115 | if ($strTmp === false) { |
|
| 5116 | return null; |
|
| 5117 | } |
|
| 5118 | $str = (string)$strTmp; |
|
| 5119 | } |
|
| 5120 | ||
| 5121 | $str = (string)$str; |
|
| 5122 | if (!isset($str[0])) { |
|
| @@ 6020-6026 (lines=7) @@ | ||
| 6017 | */ |
|
| 6018 | public static function strspn($str, $mask, $offset = 0, $length = null) |
|
| 6019 | { |
|
| 6020 | if ($offset || $length !== null) { |
|
| 6021 | $strTmp = self::substr($str, $offset, $length); |
|
| 6022 | if ($strTmp === false) { |
|
| 6023 | $strTmp = ''; |
|
| 6024 | } |
|
| 6025 | $str = (string)$strTmp; |
|
| 6026 | } |
|
| 6027 | ||
| 6028 | $str = (string)$str; |
|
| 6029 | if (!isset($str[0], $mask[0])) { |
|