标签: php csv
我有这个字符串:
$myString = "toto;titi;tata;;;;tutu;;tyty";
我希望:explode(';',$ myString);
["toto","titi","tata","","","","tutu","","tyty"]
但我有:
$result = ["toto","titi","tata","tutu","tyty"];
我丢失了空链的值,我想保留它们。
我不知道怎么做,有人会有解决方案吗?