How can I find a number in a string with PHP?
<blockquote>
  <p><strong>Possible Duplicate:</strong><br>
  <a href="http://stackoverflow.com/questions/6278296/extract-numbers-from-a-string">Extract numbers from a string</a>  </p>
</blockquote>



<p>How can I find a number in a string with PHP?
for example :</p>

<pre><code>&lt;?
    $a="Cl4";
?&gt;
</code></pre>

<p>i have a string like this 'Cl4' . i wanna if there is a number like '4' in the string give me this number but if there is not a number in the string give me 1 .</p>
