Re: [PHP] Dynamic var

2004-07-06 Thread Curt Zirzow
* Thus wrote Pierre: > Hi all > I've a little problem with creating a dynamic var. > This is my line code : > $erreur .='Le champs '.${'corresp_chps[\''.$champs.'\']'}.''; You're making it more complicated that it needs to be: $erreur .= 'Le champs '. $corresp_chps[$champs] .''; Curt -- Firs

[PHP] Dynamic var

2004-07-06 Thread Pierre
Hi all I've a little problem with creating a dynamic var. This is my line code : $erreur .='Le champs '.${'corresp_chps[\''.$champs.'\']'}.''; Yes i need the quote, cause it's not my var but a webservice one and the name var is 001 so i've indexed my array with '001' etc..; Thx a lot And this is