I've created this code to initialize and output the elemnts of an associative array using php.
$a=array("first"=>999,"two"=>099);
foreach ($a as $key => $value) {
echo $a[$key]."<br />";
}
The element with the key first outputs 999 while the other outputs 0. The question is why the 999 which is not stored as string outputs correctly and the 099 dont.. Anyone explaining this? Thanks!
";` which will add zeros to the front of the number until the string length is 3. – Henders Feb 12 '16 at 09:37