@@ 5129-5135 (lines=7) @@ | ||
5126 | return null; |
|
5127 | } |
|
5128 | ||
5129 | if ($offset || $length !== null) { |
|
5130 | $strTmp = self::substr($str, $offset, $length); |
|
5131 | if ($strTmp === false) { |
|
5132 | return null; |
|
5133 | } |
|
5134 | $str = (string)$strTmp; |
|
5135 | } |
|
5136 | ||
5137 | $str = (string)$str; |
|
5138 | if (!isset($str[0])) { |
|
@@ 6036-6042 (lines=7) @@ | ||
6033 | */ |
|
6034 | public static function strspn($str, $mask, $offset = 0, $length = null) |
|
6035 | { |
|
6036 | if ($offset || $length !== null) { |
|
6037 | $strTmp = self::substr($str, $offset, $length); |
|
6038 | if ($strTmp === false) { |
|
6039 | $strTmp = ''; |
|
6040 | } |
|
6041 | $str = (string)$strTmp; |
|
6042 | } |
|
6043 | ||
6044 | $str = (string)$str; |
|
6045 | if (!isset($str[0], $mask[0])) { |