Hugilore111
Member
Hi!
I have a multi-dimensional array.
How to take a category from the array?
Foreach does not work
I have a multi-dimensional array.
How to take a category from the array?
Foreach does not work
Code:
array(10)
{
["categories"] => array(2) {
[2] => array(7) {
["category_id"] => int(1)
["user_id"] => int(0)
["category_name"] => string(20) "Category"
["parent_id"] => int(0)
}
[4] => array(7) {
["category_id"] => int(4)
["user_id"] => int(0)
["category_name"] => string(20) "Category"
["parent_id"] => int(0)
}
}
}