-4
簡單地說,如何從這個數組中移除對象。如何轉換成數組.......如何將數組對象轉換爲簡單的數組格式
array(2) {
[0]=>
object(stdClass)#44 (8) {
["invoice"]=>
string(2) "32"
["date"]=>
string(19) "2016-03-04 03:40:53"
["type_ext"]=>
string(6) "SUBSCR"
["type_not"]=>
int(4)
}
[1]=>
object(stdClass)#42 (8) {
["id_invoice"]=>
string(2) "32"
["date"]=>
string(19) "2016-03-04 03:40:53"
["type_ext"]=>
string(6) "SUBSCR"
["type_not"]=>
int(4)
}
}
解釋只是......
http://stackoverflow.com/questions/4345554/convert-php-object-to- associative-array?rq = 1 - 你甚至嘗試過搜索嗎? - 從剛剛複製你的標題和谷歌搜索它http://stackoverflow.com/questions/2476876/how-do-i-convert-an-object-to-an-array。 – Epodax
在問一個問題之前有很多問題需要您搜索 –
@Muhammad請仔細閱讀如何提問http://stackoverflow.com/help/on-topic –