4
我有一個快速查詢有關如何將多維數組轉換成一維數組如何在PHP中將多維關聯數組轉換爲單維數組?
$teachers=array(array('post_id' => "John Doe",'video_id' => array('Government','English')), array('post_id' => "Steven Lee",'video_id' => array("Math","Science", "PE")),array('post_id' => "Jean Perot", 'video_id' => array("French", "Literature")));
http://stackoverflow.com/questions/8611313/turning-multidimensional -array-into-one-dimensional-array – Wyck 2013-03-16 06:10:15