note 21616 added to ref.array
| From: | 12345@php.net | Date: | Tue, 21 May 2002 14:39:26 +0000 |
| Subject: | note 21616 added to ref.array | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-30833@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
--
http://www.php.net/manual/en/ref.array.php
http://master.php.net/manage/user-notes.php?action=edit+21616
http://master.php.net/manage/user-notes.php?action=delete+21616
http://master.php.net/manage/user-notes.php?action=reject+21616