Mega Code Archive

 
Categories / Php / Data Type
 

Storing Integers in PHP

<?php     $my_int = 50;       /* Standard Decimal Notation */     $my_int = O62;      /* Same number, Octal Notation (starts with the letter O)*/     $my_int = 0x32;     /* Hexadecimal Notation */ ?>