Afficher un message
Vieux 18/10/2007, 17h33   #5
Jochem Maas
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: [PHP] Re: !! how can arithmetic variables(string) ??

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 , 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
>

  Réponse avec citation
 
Page generated in 0,30108 seconds with 9 queries