當前數組:PHP - 變換陣列到新的一個
stdClass Object (
[name1] => Someting very useful
[text1] => Description of something useful
[url1] => link.to/useful
[name2] => Someting very useful2
[text2] => Description of something useful2
[url2] => link.to/useful2
[name3] => Someting very useful3
[text3] => Description of something useful3
[url3] => link.to/useful3
)
我需要: 要創建多維數組,其中相同的名稱1,文本1,URL1(依此類推)鍵將推杆成自己的數組。如何做到這一點?
你有一個對象 - stdClass的實例。它不是數組。 – vikingmaster 2013-02-18 14:00:52