note 63750 added to function.array

From: Date: Wed, 29 Mar 2006 22:16:18 +0000
Subject: note 63750 added to function.array
Groups: php.notes 
Request: Send a blank email to php-notes+get-106980@lists.php.net to get a copy of this message
Note that there is a strange behaviour when creating nested associative arrays: Creating a 6 level deep associative array this way succeeds: $a = array(); $a[1] = array(); $a[1][1] = array(); $a[1][1][1] = array(); $a[1][1][1][1] = array(); $a[1][1][1][1][1] = array(); var_dump($a); This way the 2. level array is empty: $b = array(); b1 = $b[1] = array(); $b2 = $b1[1] = array(); $b2[1] = array(); $b3 = $b2[1] = array(); $b3[1] = array(); var_dump($b); ---- Server IP: 212.47.220.12 Probable Submitter: 213.35.169.116 ---- X-Spam-Status: No, hits=3.1 required=5.0 tests=DATE_MISSING,FROM_NO_LOWER autolearn=no version=2.64 ---- Manual Page -- http://www.php.net/manual/en/function.array.php Edit -- http://master.php.net/note/edit/63750 Del: integrated -- http://master.php.net/note/delete/63750/integrated Del: useless -- http://master.php.net/note/delete/63750/useless Del: bad code -- http://master.php.net/note/delete/63750/bad+code Del: spam -- http://master.php.net/note/delete/63750/spam Del: non-english -- http://master.php.net/note/delete/63750/non-english Del: in docs -- http://master.php.net/note/delete/63750/in+docs Del: other reasons-- http://master.php.net/note/delete/63750 Reject -- http://master.php.net/note/reject/63750 Search -- http://master.php.net/manage/user-notes.php

« previous php.notes (#106980) next »