Hi there,
I have the following PHP code:
<?php
$books = array(
array("title"=>"Book Title 1", "author"=>"Author 1", "publisher"=>"Publisher 1"),
array("title"=>"Book Title 2", "author"=>"Author 2", "publisher"=>"Publisher 2"),
array("title"=>"Book Title 3", "author"=>"Author 3", "publisher"=>"Publisher 3"),
);
foreach ($books as $key => $value) {
echo "$key : $value<br>";
}
?>
I'm trying to loop through this code, but all it outputs is:
0: ARRAY
1: ARRAY
2: ARRAY
-- It's not even pulling the proper $keys and $values. It works when there's just ONE array -- but not with this multidimensional array.
Any ideas?
Thanks!
J