note 55451 deleted from language.types.array by nlopess
| From: | nlopess@php.net | Date: | Thu, 04 Aug 2005 10:09:45 +0000 |
| Subject: | note 55451 deleted from language.types.array by nlopess | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-93056@lists.php.net to get a copy of this message | ||
Note Submitter: uzakufuklar at hotmail dot com
----
It is a kind of simple muti-dimensional array list. I have made it just to give a simple idea.
<?php
echo "Here we'll see how to create a multi-dimensional array.\n";
$a=array('fruits'=>array('a'=>'orange',
'b'=>'grape',c=>'apple'),
'numbers'=>array(1,2,3,4,5,6),
'holes'=>array('first',5=>'second',
'third')
);
foreach($a as $list=>$things){
foreach($things as $newlist=>$counter){
echo $counter;
}
}
?>