note 3667 deleted from Types by jeroen

From: Date: Wed, 23 May 2001 23:04:32 +0000
Subject: note 3667 deleted from Types by jeroen
Groups: php.notes 
Request: Send a blank email to php-notes+get-14205@lists.php.net to get a copy of this message
Well this is how it goes: $a = 1234; # decimal number basically for a variable you need the $ symbol and a name ie. $number positive and negative numbers can be store. Negative numbers are stored by putting a - in front of the number: $number = -30; #negative 30 in other words for octal you have to put a 0 in front of your number: $number = 0123; # This is not 123 decimal #its 123 in octal...83 in decimal now hexadecimal numbers are in the form $number = 0x12 # 12 in hex which is 18 in decimal. 0x says to the compiler that the number is a hex

« previous php.notes (#14205) next »