note 91212 added to control-structures.foreach

From: Date: Sat, 30 May 2009 08:22:13 +0000
Subject: note 91212 added to control-structures.foreach
Groups: php.notes 
Request: Send a blank email to php-notes+get-156177@lists.php.net to get a copy of this message
RE: Kjetil Hrtveit foreach does NOT cast keys that are string representations of integers to actual ints. That happens automatically when the array is created. See http://www.php.net/manual/en/language.types.array.php ---- Server IP: 69.147.83.197 Probable Submitter: 75.82.195.12 ---- Manual Page -- http://www.php.net/manual/en/control-structures.foreach.php Edit -- https://master.php.net/note/edit/91212 Del: integrated -- https://master.php.net/note/delete/91212/integrated Del: useless -- https://master.php.net/note/delete/91212/useless Del: bad code -- https://master.php.net/note/delete/91212/bad+code Del: spam -- https://master.php.net/note/delete/91212/spam Del: non-english -- https://master.php.net/note/delete/91212/non-english Del: in docs -- https://master.php.net/note/delete/91212/in+docs Del: other reasons-- https://master.php.net/note/delete/91212 Reject -- https://master.php.net/note/reject/91212 Search -- https://master.php.net/manage/user-notes.php

« previous php.notes (#156177) next »