Friday, 13 September 2013

Retrieving a number at a time from a string - PHP

Retrieving a number at a time from a string - PHP

I am working on a project of mine and came across an interesting problem.
Lets say you have a string that contains 5,5689, 1546,572 and with this
string, lets say I want to separate each of the numbers separated by a
comma and store them into a database individually.
For instance, it would take 5 and store that into the database. Than it
would take 5689 and store that into the database.
How would you ladies and gentlemen go about this?
David

No comments:

Post a Comment