Date: 06/14/02
- Next message: philip <email protected>: "[PHP-DOC] Bug #17701 Updated: Documentation about super-globals"
- Previous message: jan <email protected>: "[PHP-DOC] Bug #15278 Updated: documentation error on ifx_query()"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
From: kristian.raue <email protected>
Operating system: all
PHP version: 4.2.1
PHP Bug Type: Documentation problem
Bug description: Interpretation of the term "multi-dimensional array"
Hello
I think the term "multi-dimensional array" might be misleading for some
people. Wouldn't "nested array" be more precise?
Look at the following sample:
$myArray = array(
"A"=>Array("1"=>"test","2"=>"test","3"=>"test"),
"B"=>Array("1"=>"test","2"=>"test","3"=>"test"),
"C"=>Array("1"=>"test","2"=>"test","3"=>"test"));
In this sample I can "unset($myArray["B"])" which deletes a elements
associated with the key "B", but there is no function to delete all
elements which are associated with the key "2" in one step. I have to go
through all the elements of the ABC-Array and delete each "2"-Element
seperatly.
In a multi-dimensional array you could delete (and add)Elements in both
dimensions without having to loop through the nested arrays.
PS: I very much like the way PHP organizes Arrays, don't change it. It is
just the term that confuses me.
With Regards
Kristian
-- Edit bug report at http://bugs.php.net/?id=17763&edit=1 -- Fixed in CVS: http://bugs.php.net/fix.php?id=17763&r=fixedcvs Fixed in release: http://bugs.php.net/fix.php?id=17763&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=17763&r=needtrace Try newer version: http://bugs.php.net/fix.php?id=17763&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=17763&r=support Expected behavior: http://bugs.php.net/fix.php?id=17763&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=17763&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=17763&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=17763&r=globals
- Next message: philip <email protected>: "[PHP-DOC] Bug #17701 Updated: Documentation about super-globals"
- Previous message: jan <email protected>: "[PHP-DOC] Bug #15278 Updated: documentation error on ifx_query()"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]

