Hi
I'm having problems trying to echo the array, that I created. I'm trying to create a 3-D array.
Here is the file:
$futures = array(array(array("GC", "Gold", 1,605)
(array("SI", "Silver", 27)
(array("PL", "Platinum", 1475)
(array("HG", "Copper", 3.48)),
(array(array("CCS", "Corn", 707)
(array("SNS", "Soybeans", 1,525)
(array("WCS", "Wheat", 846)),
(array(array("CJ", "Cocoa ", 2,335)
(array("KT", "Coffee", 183)
(array("TT", "Cotton", 70.56)
(array("YO", "Sugar #11", 21.95)));
For ($layer = 0; $layer <4; $layer++){
echo "Layer $layer<BR>";
for ( $row = 0; $row <4; $row++ ){
for ( $column = 0; $column <3; $column++ ){
echo "|" futures[$layer][$row][$column];}
echo "<BR>";}
}
I appreciate any suggestions or any examples will do, for me to see what I did wrong. Thanks!