Re: Dynamic var

From: Date: Wed, 07 Jul 2004 01:06:23 +0000
Subject: Re: Dynamic var
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-189831@lists.php.net to get a copy of this message
* 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.'\']'}.'<br>'; You're making it more complicated that it needs to be: $erreur .= 'Le champs '. $corresp_chps[$champs] .'<br>'; Curt -- First, let me assure you that this is not one of those shady pyramid schemes you've been hearing about. No, sir. Our model is the trapezoid!

« previous php.general (#189831) next »