array (
[0] => 3 / 4 Bananas
[1] => 1 / 7 Apples
[2] => 3 / 3 Kiwis
)
Is it possible, to say, iterate through this list, and explode between the first letter and first integer found, so I could seperate the text from the set of numbers and end up with something like:
array (
[0] => Bananas
[1] => Apples
[2] => Kiwis
)
I have no idea how you would specify this as the delimiter. Is it even possible?
foreach ($fruit_array as $line) {
$var = explode("??", $line);
}
Edit: updated example. exploding by a space wouldn't work. see above example.