Re: [need quick help!!]finding numbers inside a string!
Posted: Sun Oct 18, 2009 1:53 pm
Code: Select all
if (preg_match('/\d/', $text)) {
// has a number
}A community of PHP developers offering assistance, advice, discussion, and friendship.
http://forums.devnetwork.net/
Code: Select all
if (preg_match('/\d/', $text)) {
// has a number
}