returning variable from function
<p>This is probably not the wisest question, but is it possible to return a variable from a function without redeclaring it?</p>

<pre><code>function test(){
$a = 1;
return $a;
}
</code></pre>

<p>Would it somehow be possible to access $a with just calling the function? test();</p>

<p>not $a = test();</p>

<p>Is that the only way? I want to make $a available after calling the function.</p>
