Doc #54251 [NEW]: undocumented: isset checks multidimensional at each depth

From: Date: Mon, 14 Mar 2011 21:02:37 +0000
Subject: Doc #54251 [NEW]: undocumented: isset checks multidimensional at each depth
Groups: php.doc.bugs 
Request: Send a blank email to doc-bugs+get-6077@lists.php.net to get a copy of this message
From: Operating system: n/a PHP version: Irrelevant Package: Documentation problem Bug Type: Documentation Problem Bug description:undocumented: isset checks multidimensional at each depth Description: ------------ For years I've been using isset($foo[$x][$y]) to arbitrary depth and relying on it checking each array dimension in turn. I've just now noticed that the documentation does not explicitly state that this depth-checking is a Feature. It probably should be documented and given an example... Test script: --------------- <?php error_reporting(E_ALL); $foo[0] = 'This is not an array with a key of "value" to be used.'; if (isset($foo[0]['value'])){ echo "Right."; } else{ echo "Wrong."; } ?> Expected result: ---------------- I see what I expect to see, except the docs don't explicitly state that I've been doing it right for a decade :-) -- Edit bug report at http://bugs.php.net/bug.php?id=54251&edit=1 -- Try a snapshot (PHP 5.2): http://bugs.php.net/fix.php?id=54251&r=trysnapshot52 Try a snapshot (PHP 5.3): http://bugs.php.net/fix.php?id=54251&r=trysnapshot53 Try a snapshot (trunk): http://bugs.php.net/fix.php?id=54251&r=trysnapshottrunk Fixed in SVN: http://bugs.php.net/fix.php?id=54251&r=fixed Fixed in SVN and need be documented: http://bugs.php.net/fix.php?id=54251&r=needdocs Fixed in release: http://bugs.php.net/fix.php?id=54251&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=54251&r=needtrace Need Reproduce Script: http://bugs.php.net/fix.php?id=54251&r=needscript Try newer version: http://bugs.php.net/fix.php?id=54251&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=54251&r=support Expected behavior: http://bugs.php.net/fix.php?id=54251&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=54251&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=54251&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=54251&r=globals PHP 4 support discontinued: http://bugs.php.net/fix.php?id=54251&r=php4 Daylight Savings: http://bugs.php.net/fix.php?id=54251&r=dst IIS Stability: http://bugs.php.net/fix.php?id=54251&r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=54251&r=gnused Floating point limitations: http://bugs.php.net/fix.php?id=54251&r=float No Zend Extensions: http://bugs.php.net/fix.php?id=54251&r=nozend MySQL Configuration Error: http://bugs.php.net/fix.php?id=54251&r=mysqlcfg

« previous php.doc.bugs (#6077) next »