|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2003-01-14 11:58 UTC] derick@php.net
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Thu Dec 04 18:00:01 2025 UTC |
<?php $a = array(01,08,10,15,17,20); $b = array(001,008,012,015,170,200); for($i=0; $i<count($a); $i++) { echo($i." - ".$a[$i]." - ".$b[$i]."<br>"); } $c= 011; echo("\$c = ".$c); ?> ## OUTPUT ## 0 - 1 - 1 1 - 0 - 0 2 - 10 - 10 3 - 15 - 13 4 - 17 - 170 5 - 20 - 200 $c = 9 ----------------------- All the numbers, from "8" to up, if preceded by zero, outputs another value. -----------------------