How can I flat a multidimensional array after an explode with PHP ?
Example:
$string = "the colour of the sky is blue";
$pieces = explode(' ', $string);
Desired output:
array('the', 'colour', 'of', 'the', 'sky', 'is', 'blue');
Thanks.
How can I flat a multidimensional array after an explode with PHP ?
Example:
$string = "the colour of the sky is blue";
$pieces = explode(' ', $string);
Desired output:
array('the', 'colour', 'of', 'the', 'sky', 'is', 'blue');
Thanks.