note 89325 added to function.array

From: Date: Tue, 03 Mar 2009 19:03:06 +0000
Subject: note 89325 added to function.array
Groups: php.notes 
Request: Send a blank email to php-notes+get-151406@lists.php.net to get a copy of this message
Here's an example on how to create a multi-dimensional array...(without using ArrayObject) <?php $characters = array(array(array( array ( name=>"name 1", occupation=>"Developer", age=>30, specialty=>"Java" ), array ( name=>"name 2", occupation=>"Programmer", age=>24, specialty=>"C++" ), array ( name=>"name 3", occupation=>"Designer", age=>63, specialty=>"Javascript" ))) ); print $characters[0][0][2][occupation]; ?> ---- Server IP: 59.162.86.33 Probable Submitter: 122.167.138.40 ---- Manual Page -- http://www.php.net/manual/en/function.array.php Edit -- https://master.php.net/note/edit/89325 Del: integrated -- https://master.php.net/note/delete/89325/integrated Del: useless -- https://master.php.net/note/delete/89325/useless Del: bad code -- https://master.php.net/note/delete/89325/bad+code Del: spam -- https://master.php.net/note/delete/89325/spam Del: non-english -- https://master.php.net/note/delete/89325/non-english Del: in docs -- https://master.php.net/note/delete/89325/in+docs Del: other reasons-- https://master.php.net/note/delete/89325 Reject -- https://master.php.net/note/reject/89325 Search -- https://master.php.net/manage/user-notes.php

« previous php.notes (#151406) next »