I'm a PHP amateur, but a quick perusal of Eval in the manual says
In PHP 4, eval() returns FALSE unless return() is
called in the evaluated code, in which case the
value passed to return() is returned. In PHP 3,
eval() does not return a value.
> -Original Mess
simple..
try this:
echo eval($variablename);
then again why are you eval()ing at all??
why can't you do this:
$var1="var2";
$$var1=13;
echo $var2;
//or perhaps even better:
//echo $$var1;
seems simple enough.. haven't tested but theory is there I think..
HTH
:
2 matches
Mail list logo