Re: define variables.
| From: | Vincent M. | Date: | Wed, 05 Mar 2003 18:09:46 +0000 |
| Subject: | Re: define variables. | ||
| References: | 1 2 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-138328@lists.php.net to get a copy of this message | ||
Jason K Larson wrote:
http://www.php.net/manual/en/function.constant.php $msg = constant('_LANG'.$num); HTH, -- Jason k LarsonStrange 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: $num = "_LANG".$num ; echo constant($num) ; //It display the constant variable. Anyway it works :-) Thanks, Vincent.