CASE # 1: I have the following code that outputs the correct number
<?php $integer = 10000000000; $array = array($integer); print_r($array[0]);
CASE # 2: But when I explicitly type one integer into an integer, it gives a different output
<?php $integer = (int)10000000000; $array = array($integer); print_r($array[0]);
CASE # 3: If I make the number less by one 0 and type it, it will return the correct number
<?php $integer = (int)1000000000; $array = array($integer); print_r($array[0]);
Why doesn't it produce the correct output in CASE # 2 ?
arrays php
Khawer Zeshan
source share