Would someone help me please?
Right now, I have a list of comma-delimited 10-digit numbers, like this for example:
1234567890,1111111111,6666666666,8484848484
and this function locates them perfectly in the context of my scripting:
$number = substr($number,0,10);
However, sometimes the numbers are NOT ALWAYS 10 digits long, yet they are still comma-delimited, like this for example:
1234567890,12345,6666666666,333,
What code can I use for this? I would think there would be something along the lines of, any number starting with location "0" and ending with a comma":
$number = substr($number,0,",")
but, of course, that doesn't work... because I'm just guessing at what the code would be.
Thank you!!