Closed sebsel closed 7 years ago
So I had the following:
echo str::after('string', '.'); // tring
Maybe add a if (!$pos) return $string?
if (!$pos) return $string
public static function after($string, $char) { $pos = strpos($string, $char); return static::substr($string, $pos+1); }
This is now fixed on the develop branch.
So I had the following:
Maybe add a
if (!$pos) return $string
?