Page 1 of 1

Re: [need quick help!!]finding numbers inside a string!

Posted: Sun Oct 18, 2009 1:53 pm
by requinix

Code: Select all

if (preg_match('/\d/', $text)) {
    // has a number
}