How do I use php to filter values based on what they start with?
<p>How do I use php to only accept values that begin with "09"? For example, only <code>value 1</code> and <code>value 3</code> should be accepted in this list: </p>

<pre><code> value 1 ="09888111222";
 value 2 ="02999111222";
 value 3 ="09999111111";
</code></pre>

<p>i done it...</p>

<pre><code>$cno="09888111222";
$countc=strlen($cno);
$countc1=-$countc+2;
$rest = substr($cno, 0, $countc1); 
if($rest==07){
echo $rest;
}else{
echo "Value not starts with 07";
}
</code></pre>
