I have a string of numbers, like so:
$numbers = "one, two, three four, five";
I first explode it by comma:
$numbers_array = explode(",", $numbers);
My result is:
array(4) {
[0] => string(3) "one"
[1] => string(4) " two"
[2] => string(11) " three four"
[3] => string(5) " five"
}
My question is, how can I achieve this?
array(5) {
[0] => string(3) "one"
[1] => string(4) "two"
[2] => string(6) "three"
[3] => string(5) "four"
[4] => string(5) "five"
}