List values in multi-dimensional array in php
问题 I have been working on this a while. I see multi-dimensional arrays in php are not that easy. Here is my code: while (list($key,$value) = each ($x)) { Print "$key => $value\n<br>\n"; } This works well to display the keys of the main array. what I get is : visitors => Array actions => Array actions-average => Array time-average => Array pages-entrance => Array What I want is the visitors and the value (number of visitors), value of actions, etc. I want to then save the value in Mysql. Some I