| @@ 5023-5029 (lines=7) @@ | ||
| 5020 | return null; |
|
| 5021 | } |
|
| 5022 | ||
| 5023 | if ($offset || $length !== null) { |
|
| 5024 | $strTmp = self::substr($str, $offset, $length); |
|
| 5025 | if ($strTmp === false) { |
|
| 5026 | return null; |
|
| 5027 | } |
|
| 5028 | $str = (string)$strTmp; |
|
| 5029 | } |
|
| 5030 | ||
| 5031 | $str = (string)$str; |
|
| 5032 | if (!isset($str[0])) { |
|
| @@ 5908-5914 (lines=7) @@ | ||
| 5905 | */ |
|
| 5906 | public static function strspn($str, $mask, $offset = 0, $length = null) |
|
| 5907 | { |
|
| 5908 | if ($offset || $length !== null) { |
|
| 5909 | $strTmp = self::substr($str, $offset, $length); |
|
| 5910 | if ($strTmp === false) { |
|
| 5911 | $strTmp = ''; |
|
| 5912 | } |
|
| 5913 | $str = (string)$strTmp; |
|
| 5914 | } |
|
| 5915 | ||
| 5916 | $str = (string)$str; |
|
| 5917 | if (!isset($str[0], $mask[0])) { |
|