I am new to Multi-Dimensional arrays and working on building my php skills as well. I have an associative array which I want to get the nested elements of the array but not have to worry about the multi-dem arrays name. Example:
Array (
[cur_wea_array] => Array ( [status] => current [day] => 0 )
[for_wea_array0] => Array ( [status] => current_forecast [day] => 1 )
[for_wea_array1] => Array ( [status] => current_forecast [day] => 2 )
[for_wea_array3] => Array ( [status] => current_forecast [day] => 3 ) )
I would like to not to have to worry about the cur_wea_array element and just loop through and get the status element. Is there a way you can loop [%wildcard][day] or something? So I can get all the status or day elements without having to specify [cur_wea_array] and [for_wea_array0]?