Re: Re: Bad PHP error

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hello,

Octavian Rasnita wrote:

<?php
$var = 1000000000000;
//Here I have also tried inserting $var = (string) $var;
echo "$var";
?>

This prints:

1E+012

and... not 1000000000000 as it should.



I tried the above example, and I got what you want, i.e. 1000000000000. My environment is Windows 2k, PHP 4.3.3 and Apache 2.0.47.

Best

Bao

I have first tried just echo $var, but I thought that maybe if I put it
between quotes, it will be printed right, but...

Thank you.

Teddy





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


[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux