Dear All,
$variablename="variable";
eval("\$".$variablename."=13;");
echo $variable;
This works fine!! It echoes "13";
But this doesn't ->
echo eval("\"$variablename\"");
Why??
Henry
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
[EMAIL PROTECTED]>
Sent: Sunday, May 19, 2002 12:29 AM
Subject: [PHP] How can I access the value in a variable whos name is in a
string
> Dear All,
>
> $variablename="variable";
> eval("\$".$variablename."=13;");
> echo $variable;
>
> This wor
Original Message-
> From: Henry [mailto:[EMAIL PROTECTED]]
> Sent: Saturday, May 18, 2002 10:30 AM
> To: [EMAIL PROTECTED]
> Subject: [PHP] How can I access the value in a
> variable whos name is in
> a string
>
>
> Dear All,
>
> $variablename="variab
3 matches
Mail list logo