I want to know if there is a number in one string (PHP CODE)  

This is what i have:

```
if (!preg_match('/0/',$p) || !preg_match('/1/',$p) || !preg_match('/2/',$p) || !preg_match('/3/',$p) || !preg_match('/4/',$p) || !preg_match('/5/',$p) || !preg_match('/6/',$p) || !preg_match('/7/',$p) || !preg_match('/8/',$p) || !preg_match('/9/',$p)){
    echo "<p>The password need to contain atleast one number</p>";
    exit();
}

```