I declared an array item "0859" but when I display the array item, it shows only the 0 and not the whole number "0859".
In constant define I set the value to "01238" the result is the same with my array, it shows only the value 0 and not the whole number 01238. I would like to know further about the reason why array item and define that starts with 0 in there item and values shows only the 0 and not the whole number
Array
<?php
$num = [0859];
echo $num;
output: 0
Why not the the output is "0859"
?>
Constant Define
<?php
define(myNum, 01238);
echo myNum;
output: 0
Why not the the output is "01238"
?>
I'm using Wamp PHP version 5.5.12
Please enlighten me why I get the output only 0 and not the whole number