what is the preg_match condition to ensure the first digit is a number 7?
<p>For e.g. </p>

<pre><code>if(preg_match("/[^0-9]/",$number_from)){
   $error_message .= 'Please Check and try again.&lt;br /&gt;';
} 
</code></pre>

<p>is to only ensure numbers are entered for the string.</p>

<p>But what is the condition to ensure the first number can only be a number "7", or else the above error message will show?</p>

<p>Sorry im new to PHP.</p>