Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我有一个需要转换为数组的对象,我该怎么做?
Array ( [0] => stdClass Object ( ...
将您的对象转换为数组:
$array[0] = (array) $array[0];
这显然没有考虑比您发布的更多细节:P