Re: [PHP] define variables.

2003-03-05 Thread Vincent M.
Jason K Larson wrote: http://www.php.net/manual/en/function.constant.php $msg = constant('_LANG'.$num); HTH, -- Jason k Larson Strange it does not work if I do: $num = "_LANG".$num ; $msg = constant($num) ; echo $mgs ; //It does not display anything! But If I do it directly, it works: $nu

Re: [PHP] define variables.

2003-03-05 Thread Jason k Larson
http://www.php.net/manual/en/function.constant.php $msg = constant('_LANG'.$num); HTH, -- Jason k Larson Vincent M. wrote: Hello, I do a lot of define like that: define ("_LANG1", "Server options"); define ("_LANG1", "Manage your system"); etc... And stuff like that: if($num == 1) { $mgs =