I don't understant why my explode doesn't work :
I have an array :
array(6) {
[0]=> string(0) ""
[1]=> string(21) " Subject Hello World "
[2]=> string(57) " Bonjour se jserais base sdf sdf sd f sqdf qsfd "
[3]=> string(22) " [email protected] "
[4]=> string(12) " hello byee "
[5]=> string(11) " loul fund " }
I want to creat an another tab for element 4 an 5. I try an
$one = explode(" ", $this->connect[4]);
var_dump($one);
But the result is :
array(1) { [0]=> string(12) " hello byee " }
and not :
array(1) { [0]=> string(4) "hello" [1]=>string(4) "byee" }
Do you no why ?
trim()to remove those.var_dump($this->connect[4]);?