Posted by Victor Espina on 09/19/05 18:08
Excelent!!!
It worked pretty fine!! thanks a lot for your help.
Victor Espina
Bent Stigsen wrote:
> 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
[Back to original message]
|