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:
inc/text.php:
<?php
$show = array(
"welcome" => "Welkom @ ....",
'test' => true
);
function show($foo) {
echo $show[$foo];
}
?>
index.php:
<?php show("welcome"); ?>