note 21616 rejected from ref.array by torben
| From: | torben@php.net | Date: | Tue, 21 May 2002 16:31:39 +0000 |
| Subject: | note 21616 rejected from ref.array by torben | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-30843@lists.php.net to get a copy of this message | ||
I've a problem...
Here's my array
$dictionnaire = array(
"VISITE_SITE_LOGARITHME" => array("FRA"=>'Visiter le site de
Logarithme', "ENU"=>'Go to Logarithme website')
,"SOCIETE" => array("FRA"=>'Société
:',"ENU"=>'Firm:')
,"UTILISATEUR" => array("FRA"=>'Utilisateur
:',"ENU"=> 'User:')
,"RECHERCHE" =>
array("FRA"=>'Recherche',"ENU"=>'Search')
)
To simplify, its structure is
$dictionnaire=Array("one_word" => array("FRA"=>'in
french',"ENU"=>'in english')
,...);
My function foo doesn't return anything
function dico($mot,$lang)
{
return $dictionnaire[$mot][$lang];
}
How can I return one value in this 2-dimension array with string indexes ?
Please send me an e-mail if you have the answer.
Thanks,
iubito