note 76064 deleted from function.is-array by danbrown

From: Date: Sat, 27 Dec 2008 16:53:49 +0000
Subject: note 76064 deleted from function.is-array by danbrown
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-148573@lists.php.net to get a copy of this message
Note Submitter: elliot dot winkler at gmail dot com ---- @ 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.

« previous php.notes (#148573) next »