note 11588 added to Types

From: Date: Mon, 26 Feb 2001 15:19:18 +0000
Subject: note 11588 added to Types
Groups: php.notes 
Request: Send a blank email to php-notes+get-11608@lists.php.net to get a copy of this message
Don't try to assign really big numbers in hex to integers. Use their decimal equivalent. $Magic = 0x9f4e6c93; echo "Magic = " . (int) $Magic . "<br>\n"; // Result: Magic = 1 $Magic = -1622250349; echo "Magic = " . (int) $Magic . "<br>\n"; // Result: Magic = -1622250349 http://www.php.net/manual/en/language.types.php

« previous php.notes (#11608) next »