note 46740 deleted from function.array by sean
| From: | sean@php.net | Date: | Thu, 21 Oct 2004 21:06:32 +0000 |
| Subject: | note 46740 deleted from function.array by sean | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-78909@lists.php.net to get a copy of this message | ||
Note Submitter: brett at cusaac dot com
----
You can also create arrays without using array() as in the following:
<?php
$myarray[0][0] = 1;
$myarray[0][1] = 2;
$myarray[0][2] = 3;
$myarray[1][0] = 10;
$myarray[1][1] = 11;
$myarray[1][2] = 12;
for ($i = 0; $i < count($myarray); $i++) {
for ($n = 0; $n < count($myarray[$i]); $n++) {
echo $i . "," . $n . ": ";
echo $myarray[$i][$n];
echo "\n\n";
}
}
?>
----
Reason: bad code