Re: HELP!! how can arithmetic variables(string) ??
| From: | Nathan Nobbe | Date: | Thu, 18 Oct 2007 08:39:51 +0000 |
| Subject: | Re: HELP!! how can arithmetic variables(string) ?? | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-263281@lists.php.net to get a copy of this message | ||
On 10/18/07, LKSunny <ad@pc86.com> 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 !!
> ?>
$a = 1+1;
echo $a;
-nathan