Quote from here :
If the separator contains a value that is not contained in the string and a negative limit, then an empty array will be returned, otherwise an array containing the string.
But why am I still not getting an empty array?
var_dump(explode(',', '', -1))
I get this:
array(1) {
[0]=>
string(0) ""
}
UPDATE
Try it on Windows with PHP 5.2.8 (cli) (built: December 8, 2008 19:31:23)
source
share