Multidimensional array to object, specific way
问题 I know this type of question has been asked a lot, but I haven't found out how to do it like I want it to be. So, basically I have this array. array(7) { ["site"]=> array(5) { ["production"]=> bool(false) ["url"]=> string(29) "http://localhost/" ["name"]=> string(6) "Sitename" ["title"]=> string(7) ": Index" ["pagedata"]=> array(1) { ["default"]=> string(5) "Index" } } ["DB"]=> array(5) { ["host"]=> string(9) "localhost" ["user"]=> string(4) "root" ["pass"]=> string(4) "secret" ["database"]=>