Doc #54251 [Opn->Csd]: undocumented: isset checks multidimensional at each depth

From: Date: Tue, 26 Apr 2011 20:03:31 +0000
Subject: Doc #54251 [Opn->Csd]: undocumented: isset checks multidimensional at each depth
References: 1  Groups: php.doc.bugs 
Request: Send a blank email to doc-bugs+get-6294@lists.php.net to get a copy of this message
Edit report at http://bugs.php.net/bug.php?id=54251&edit=1 ID: 54251 Updated by: salathe@php.net Reported by: lynch@php.net Summary: undocumented: isset checks multidimensional at each depth -Status: Open +Status: Closed Type: Documentation Problem Package: Documentation problem Operating System: n/a PHP Version: Irrelevant -Assigned To: +Assigned To: salathe Block user comment: N Private report: N New Comment: This bug has been fixed in the documentation's XML sources. Since the online and downloadable versions of the documentation need some time to get updated, we would like to ask you to be a bit patient. Thank you for the report, and for helping us make our documentation better. Previous Comments: ------------------------------------------------------------------------ [2011-04-26 22:02:15] salathe@php.net Automatic comment from SVN on behalf of salathe Revision: http://svn.php.net/viewvc/?view=revision&amp;revision=310529 Log: add examples of 2nd/3rd array depths for isset() (doc #54251) ------------------------------------------------------------------------ [2011-03-14 22:02:37] lynch@php.net 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 this bug report at http://bugs.php.net/bug.php?id=54251&edit=1

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