Join GitHub today
GitHub is home to over 40 million developers working together to host and review code, manage projects, and build software together.Sign up
Str::split() Incorrectly Trims Strings with Multiple-Character Separator #1753
Describe the bug
$str = <<<EOT -abc- --- -def- EOT; print_r(Str::split($str, '---'));
In cases where
In multi-character cases though, it should probably check if the input has a prefix/suffix of the separator and remove it based on string lengths?