close
Q: 如何將object轉成array
A: 直接型別轉換即可
ex: $array = (array) $yourObject;
--
Just typecast it
$array = (array) $yourObject;
From http://www.php.net/manual/en/language.types.array.php
轉自 https://stackoverflow.com/questions/4345554/convert-php-object-to-associative-array
--
全站熱搜
留言列表