How to extract num part of a string
<p>I have a string like "My String 2" and I like to get only num value "2".
I try to do that you see below but result is egal to 0.</p>

<pre><code>$AlphaSURV1="My String 2";
$NumSURV1=intval($AlphaSURV1);
echo $NumSURV1;
</code></pre>

<p>Can you help me to solve that?</p>

<p>Thanks</p>
