Does anyone knows of PHP support the count regex? I want to count the number of digits in a string. Who has an example?
Try the following code snippet and check whether it helps u out.
strlen(eregi_replace("[a-z]","","$alpha_num"));
where $alpha_num is ur alphanumeric string.
Hope it helps.