hey guys,
I am trying to show the [name] value here. this is my array (when I do a print_r):
Array
(
[0] => Array
(
[id] => 1
[name] => Music Festival
)
)
in my code I am doing the following but getting a 0 response (which I am guessing is b/c it's another layer in...?)
This is what I am doing in my foreach loop:
foreach ($category as $name => $value)
echo "name: " . $name;
output is:
name: 0
need:
name: Music Festival
i tried $category[0] too but that's not working either...
thank you