I failed at creating a simple language function, what am I doing wrong?
<p>I tried to create a simple language function, but I can't get it to work. The idea should be clear. I'm not getting any error messages but it won't show my text either. This is my code:</p>

<p>inc/text.php:</p>

<pre><code>&lt;?php

$show = array(

"welcome" =&gt; "Welkom @ ....", 
'test' =&gt; true 

);

function show($foo) {

echo $show[$foo];

}

?&gt;
</code></pre>

<p>index.php:</p>

<pre><code>&lt;?php show("welcome"); ?&gt;
</code></pre>
