echo $merchant_pic['shop']['campaign'];
I know that would give me the value of campaign
. But first I have to know what is the first layer of the array - which is shop
.
Problem is: the first layer could be anything.
Is there a way to get the value of second layer of array without knowing/defining what the first layer would be?
str_replace('layer','key',$stackquestion);
– Shankar Damodaran 2 hours ago