Loop until variable is isset then excute a code : <p>I try to do a while loop but something is missing I need to loop until variable is isset then execute a code something like dis :</p>

<pre><code>$counter=o;
while(null!==($var)){


$counter ++;
}
if (isset($var)){
excute code ....

}
</code></pre>
