I have this array:
Array
(
[01] => Array
(
[cat_id] => 15
[offset] => 4951
)
[02] => Array
(
[cat_id] => 15
[offset] => 4251
)
[03] => Array
(
[cat_id] => 15
[offset] => 4001
)
[04] => Array
(
[cat_id] => 15
[offset] => 4951
)
[05] => Array
(
[cat_id] => 15
[offset] => 3301
)
)
I have the code to get the key on first level using array_key_exists;
if ((array_key_exists("01", $completed_steps))) {
echo "Found 0!";
}
But I want now to get the cat_id value, how could I do that in a level 2 array?
if ((array_key_exists("cat_id", $completed_steps["01"]))) {