is there a php function that I can verify if the string contains all digital number, not alphabetic charactor? thanks.
michael123 0 Junior Poster in Training
Recommended Answers
Jump to PostWhile I would agree with the regular expressions. It is the best and proper way. Regular expressions can be hard to make.
An alternative would be to have an array like this
$my_nums = array("0","1","2")and then loop through the length of the string and do a check …
All 4 Replies
chrisbliss18 26 Posting Shark
bwest 15 Junior Poster in Training
sarahk 0 Junior Poster
smac 0 Newbie Poster
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.