value of the local variable
<p>I was messing around with some PHP codes and found this which baffles me</p>

<pre><code>DisplayButton($width, $name, $url, $judge);

public function DisplayButton($width, $name, $url, $active = true)
{
if ($active)
{
  echo "&lt;td width ='$width%'&gt;
        &lt;a href ='$url'&gt;
        &lt;img src ='s-logo.gif' alt ='$name' border ='0' /&gt;&lt;/a&gt;
        &lt;a href ='$url'&gt;&lt;span class='menu'&gt;$name&lt;/span&gt;&lt;/a&gt;&lt;/td&gt;";
}  
else
{
  echo "&lt;td width ='$width%'&gt;
        &lt;img src ='side-logo.gif'&gt;
        &lt;span class='menu'&gt;$name&lt;/span&gt;&lt;/td&gt;";
}  
}
</code></pre>

<p>how could you define a parameter like $active=true in this case, because as I believe that the value of the passed boolean variable $judge(either true or false) is going to be forced to change to true because of the $active= true, so how could it possibly reach to the else statement? I probably misunderstood the argument $active=true, but how? Thank you very much</p>
