Gossamer Forum
Home : Products : Gossamer Links : PHP Front End :

array_search

Quote Reply
array_search
hello,

i've got this array:

$cfg_sezioniPrincipali = array

(
cataloghi => 'Gestione dei Cataloghi',
viaggi => 'Gestione dei Viaggi',
servizi => 'Gestione dei Servizi',
utentiWeb => 'Gestione degli Utenti Web',
utenti => 'Gestione del Personale',
accounts => 'Gestione del BackOffice',
newsletter => 'Gestione delle Newsletter',
html => 'Gestione degli Uploads',
dumps => 'Gestione del DataBase',
bugzone => 'Help'
);

and i've got a variable ($sezione) that contains the KEY of each sections i visualize in my PHP page. how can i print the VALUE associated to the KEY ?

i've found array_search but it returns the KEY only.

thank you,
cheers
Subject Author Views Date
Thread array_search chico 6880 Oct 12, 2003, 11:34 AM
Thread Re: [chico] array_search
Andy 6777 Oct 13, 2003, 1:56 AM
Thread Re: [Andy] array_search
chico 6761 Oct 13, 2003, 2:13 AM
Thread Re: [chico] array_search
Andy 6776 Oct 13, 2003, 2:21 AM
Thread Re: [Andy] array_search
chico 6763 Oct 13, 2003, 2:36 AM
Post Re: [chico] array_search
Andy 6762 Oct 13, 2003, 2:39 AM