PHP functions variables scope
<p>Say I have...</p>

<pre><code>function one($x){
     return $a + $x;
}

function two(){
     $a = 5;
     echo one(3);
}
</code></pre>

<p>Will this show the answer "8" or "3"? In other words, will function one get the value of $a or do I need to declare it global somewhere?</p>

<p>N.B. I haven't tried it yet, but I'm asking it here to understand WHY it acts one way or the other.</p>
