我有一個數組是多維這樣PHP - 轉換多維數組二維數組
array(
0 => array(
'User' => array(
'email' => '[email protected] ,[email protected]',
'username' => 'test,testuser',
'description' => 'description1,description2'
)
)
);
我想這個數組轉換成這種形式
$User = array(
'email' => array(
'[email protected]',
'[email protected]'
),
'username' => array(
'test',
'testuser'
),
'description' => array(
'description1',
'description2'
)
);
幫助需要請!。
考慮,以得到幫助閱讀此格式幫助文章:http://stackoverflow.com/editing-help#syntax-highlighting –
你嘗試過什麼嗎?你可能想檢查php'explode' –
幫助在閱讀一些手冊 –