PHP function parameters my_func($param='')
<p>I saw some PHP today I don't understand, can anyone explain it to me?</p>

<pre><code>function my_func($param='')
{

    if (empty($param))
    {
        return false;
    }
    else
    {
        return true;
    }
}
</code></pre>

<p>What I don't understand is the $param variable being assigned an empty string but somehow not being empty inside the function? Is this just a default value?</p>
