How to change the Value of a variable globally
<pre><code>&lt;?php
    $var = "01-01-10";
    function checkkkdate($n)
    {
        global $var;   
        $var = $n;         
    } 
    echo  $var;
?&gt;
</code></pre>

<p>The output should be what i send in function call<br>
but it is giving output = 01-01-10<br>
Please help</p>
