post

From: Date: Thu, 13 Sep 2007 12:03:29 +0000
Subject: post
Groups: php.webmaster 
Request: Send a blank email to php-webmaster+get-55@lists.php.net to get a copy of this message
Apparently I can't post in the forums because my IP address is blocked. Would you please add this comment to http://www.php.net/manual/en/language.types.integer.php ? I think it is very important for the other coders. There's one thing they didn't specify here and it seems to work different when it comes to PHP and JavaScript. Numbers starting with 0 are considered octal, therefore 010 is the same as 8 (decimal). Strings are automatically converted to numbers where needed. So here's the problem: In PHP => 1 + "010" = 11 In PHP => 1 + ("0" . 10) = 11 In JavaScript => 1 + "010" = 9 (may depend on browser?) motanel_ -- Computers are useless: They can only give you answers!

« previous php.webmaster (#55) next »