Colin Guthrie wrote:
> LKSunny wrote:
>> <?
>> $a="1+1"; //variables(string)
>>
>> //how can arithmetic variables(string) ??
>> //N ROW................
>>
>> //output
>> echo $a //i need output "2" not "1+1"
>> //Please Help, Thank You Very Much !!
>> ?> 
>>
> 
> You can do:
> 
> eval("echo $a;");

you realise Sunny stopped reading at this point.
some people should not be given guns. ;-)

> 
> But be warned, this has "Injection Attack" written all over it!
> 
> Col
> 

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to