note 76064 added to function.is-array

From: Date: Thu, 28 Jun 2007 15:12:49 +0000
Subject: note 76064 added to function.is-array
Groups: php.notes 
Request: Send a blank email to php-notes+get-128053@lists.php.net to get a copy of this message
@ markus-rehrs at gmx dot de: I don't see anywhere that $k is compared to $v -- it's compared to $next. In any case, you're right that there's an error -- but it's that $k == $next will be true if $next is 0 and $k is "0", or $next is 1 and $k is "1", etc. So yeah, it's probably better to use !== rather than !=. OTOH, this is really only a problem if you give your arrays ambiguously number-like string key names like "0", "1", etc. ---- Server IP: 64.71.164.2 Probable Submitter: 70.146.159.203 ---- Manual Page -- http://www.php.net/manual/en/function.is-array.php Edit -- https://master.php.net/note/edit/76064 Del: integrated -- https://master.php.net/note/delete/76064/integrated Del: useless -- https://master.php.net/note/delete/76064/useless Del: bad code -- https://master.php.net/note/delete/76064/bad+code Del: spam -- https://master.php.net/note/delete/76064/spam Del: non-english -- https://master.php.net/note/delete/76064/non-english Del: in docs -- https://master.php.net/note/delete/76064/in+docs Del: other reasons-- https://master.php.net/note/delete/76064 Reject -- https://master.php.net/note/reject/76064 Search -- https://master.php.net/manage/user-notes.php

« previous php.notes (#128053) next »