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
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 =
2 matches
Mail list logo