Consider the snippet:
var_dump(preg_split("/./", "A.B.C")); // split on anything as the dot has not been escaped
which produces the output:
array(6) {
[0]=>
string(0) ""
[1]=>
string(0) ""
[2]=>
string(0) ""
[3]=>
string(0) ""
[4]=>
string(0) ""
[5]=>
string(0) ""
}
Can anyone please explain how it works? Also I don't see A,B or C in the output!! Why ?