By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
438,347 Members | 1,390 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 438,347 IT Pros & Developers. It's quick & easy.

Any function to count the number of digit with php

P: 1
Any function to count the number of digit with php??
Sep 5 '08 #1
Share this Question
Share on Google+
1 Reply


Dormilich
Expert Mod 5K+
P: 8,639
I'd go for strlen() or if you want to be fancy (on floats) try a regular expression (preg_match_all()).

regards
Sep 5 '08 #2

Post your reply

Sign in to post your reply or Sign up for a free account.