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.
我有一个充满 stdClass 对象的数组。我只需要反序列化每个索引中的一个对象中的特定属性。这就是我正在尝试的,但对象仍然是序列化的,所以也许我只是错误地引用它。我应该如何阅读“exampleData”属性?
foreach ($rowset as $value) { $value = unserialize($value -> exampleData); }
foreach ($rowset as &$value) { $value = unserialize($value -> exampleData); }
您需要通过引用传递