Hi all
I've a little problem with creating a dynamic var.
This is my line code :
$erreur .='Le champs '.${'corresp_chps[\''.$champs.'\']'}.'<br>';
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 the array depending of
$corresp_chps=array (
'001' => 'Soci�t�',
'002' => 'Adresse',
'003' => 'Compl�ment',
'004' => 'Code postal',
'005' => 'Ville',
'006' => 'Comt�/Cedex',
'007' => 'Pays',
'008' => 'T�l�phone',
'025' => 'Gsm',
'009' => 'Fax',
'012' => 'Civilit�',
'013' => 'Nom',
'014' => 'Pr�nom',
'015' => 'Email',
'026' => 'Web',
'036' => 'Fonction',
'010' => 'Question A',
'011' => 'Question A autre',
'016' => 'Question B',
'017' => 'Question B autre',
'035' => 'Question C',
'042' => 'Question C autre',
'033' => 'Coupon SNCF');
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php