Integer Type in PHP

Filed in php-lesson1(variables) 0 comments

Integer types are simple, the contain the simple positive and negetive numbers and they can both assigned directly or bypassign an expression to a variable
Example:

$Myint= 684
$sample number = 8496-48683

yo can also assigne other integer bases instead of base 10 to a variable
for assigning base 8 just ad miness(-)behind the number base 8 or for base 16(hexadecimal) add “0X”followed by the number such the following

$Myintb10 = 5864
$Myintb8 = -00100
$Myintb16 = 0X1000

PHP supports the integer numbers in the range between 2^31-1 and -(2^31-1)

Related posts:

  1. Assigning Variables in PHP
  2. Understanding DataTypes in ActionScript 3
  3. Variables default values in PHP
  4. PHP Variables Basic
  5. Natural Logarithms and Exponentials – Roots and Powers
  6. Reassigning Variables in PHP
  7. Declaring variables in ActionScript 3
Posted by voshka   @   6 March 2010 0 comments

Share This Post

RSS Digg Twitter StumbleUpon Delicious Technorati

0 Comments

No comments yet. Be the first to leave a comment !
Leave a Comment

Previous Post
«
Next Post
»
CrossBlock designed by DeltaManual.Com  |  In conjunction with Web Hosting   |   Web Hosting   |   Reverse phone