I’m currently using this feature from redux array for wordpress, and what it’s letting my users do is to make an array, filled with a customizable amount of nested arrays (each nested array represents one slide.)

I’m not the best at php, and this is a pretty simple question, but, if I run them through something like foreach($mybigarray as $value), would the $value become each sub array, so I could print all of the values with the sub-arrays via this method:

foreach($mybigarray as $value){
  echo $value['1'];
  echo $value['2'];
}

If this is false, how would I go about running each sub-array (of an unknown amount) through an if statement. Any “best-practices” I should know about while doing this?

Thanks!

Read more here: Get the number of arrays in a two dimensional array


Solution:

If you know the solution of this issue, please leave us a reply in Comment section, to update the question.

Related Wordpress search:

, , ,

Wordpress related questions and answers: