|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2002-10-22 10:41 UTC] sniper@php.net
|
|||||||||||||||||||||||||||
Copyright © 2001-2026 The PHP GroupAll rights reserved. |
Last updated: Wed Oct 07 08:00:02 2026 UTC |
$a = array(0=>0, 1=>1); foreach ($a as $key => $val) { print "key: ".$key.", val: ".$val; } above, the 0=>0 entry is simply skipped, and the itteration starts from 1. (it skips the 0 key OR value either string or integer.)