Get Digits
Posted: Sun Jun 12, 2005 9:28 pm
Hi,
I was wondering if anyone could help me with a function that strips all the digits from a string and returns them. Something like this:
I was wondering if anyone could help me with a function that strips all the digits from a string and returns them. Something like this:
Code: Select all
$input = "(04) 854 00912";
echo getDigit($input);
// Would print 0485400912