I have string with several spaces, including double spaces and spaces at the start and end of the string:
12 345 67 89
I want to add just the numbers into array so used:
explode(" ", $s);
But this adds spaces to to the array as well.
Is there a way to add only the numbers to the array?