Posted by Bent Stigsen on 09/17/05 20:35
Victor Espina wrote:
[snip]
> Now, I want the same result but with a string that I'm getting from a DB
> table:
>
> $var1="A";
> $var2="B";
>
> $result=GetMyString(); -> GetMyString() returns "$var1 <> $var2";
>
> echo $resul; -> It should show "A <> B";
$exp = GetMyString();
eval('$result="'.$exp.'";');
/Bent
Navigation:
[Reply to this message]
|