WITH MYSQL NOT PHP;
5. net stop mysql
6. net start mysql
7. work hard; play hard
-Original Message-
From: João Cândido de Souza Neto [mailto:[EMAIL PROTECTED]
Sent: Monday, June 26, 2006 4:13 PM
To: php-general@lists.php.net
Subject: Re: [PHP] Re: A variable inside
Alex Major wrote:
Thanks for your help with my other question, heres a new one for you.
I need to nest a variable, inside another variable. For example:
$($buildingname)level
How (if at all) is this possible?
Thanks.
Alex.
Why? What are you doing that requires that that cannot be done with
$var=1;
$var2=$var;
echo $$var2;
It´ll echo the $var´s value.
Hope it´ll help you.
Alex Major [EMAIL PROTECTED] escreveu na mensagem
news:[EMAIL PROTECTED]
Thanks for your help with my other question, heres a new one for you.
I need to nest a variable, inside another variable. For example:
You were on the right track, but this isn't going to work.. for a couple
reasons:
$var = 1; # this is fine
$var2 = $var; # $var2 == 1 at this point
echo $$var2; # you're going to echo $1
Putting $var in double quotes makes PHP evaluate it before assigning it to
$var2, so you won't get $var
Please excuse-me.
That $ was putted by mistake.
I´sorry...
[EMAIL PROTECTED] escreveu na mensagem
news:[EMAIL PROTECTED]
You were on the right track, but this isn't going to work.. for a couple
reasons:
$var = 1; # this is fine
$var2 = $var; # $var2 == 1 at this point
echo $$var2; #
5 matches
Mail list logo