I am trying to make a site multi lingual. by building a language dictionary array ( if it is not the best way please don't hesitate to let me know )
$fr=array();
$fr['hello']="Bonjour";
I would like to make a function that does the following :
for every word and language function ( $word ="hello",$language="fr")
it would return the right value. So far the way I am doing isn't working
echo $$language[$word];
any ideas? thank you