So i've been trying to get all the numbers from a string and putting them to an array but i fail :(
String: "there's 10 Apples, 8 Grapes, 120 Oranges, and 6363 Lemons."
desired outcome:
Fruits[0]=10
Fruits[1]=8
Fruits[2]=120
Fruits[3]=6363
please help me :) and thank you in advance~
Aucun commentaire:
Enregistrer un commentaire