我得到了这个 std 类对象的数组,我怎么能在单个数组中调用它,因为你可以看到只有一些值被更改。
Array
(
[0] => stdClass Object
(
[movie_id] => 4
[movie_name] => Harvey
[genre_id] => 4
[genre_title] => Action/Adventure
[rating_id] => 2
[rating_title] => Pg-16 (USA)
[person_id] => 14
[person_name] => John Beck
[role_title] => producer
)
[1] => stdClass Object
(
[movie_id] => 4
[movie_name] => Harvey
[genre_id] => 4
[genre_title] => Action/Adventure
[rating_id] => 2
[rating_title] => Pg-16 (USA)
[person_id] => 15
[person_name] => Henry Koster
[role_title] => directer
)
[2] => stdClass Object
(
[movie_id] => 4
[movie_name] => Harvey
[genre_id] => 4
[genre_title] => Action/Adventure
[rating_id] => 2
[rating_title] => Pg-16 (USA)
[person_id] => 16
[person_name] => Mary Coyle Chase
[role_title] => writer
)
[3] => stdClass Object
(
[movie_id] => 4
[movie_name] => Harvey
[genre_id] => 4
[genre_title] => Action/Adventure
[rating_id] => 2
[rating_title] => Pg-16 (USA)
[person_id] => 17
[person_name] => Oscar Brodney
[role_title] => writer
)
[4] => stdClass Object
(
[movie_id] => 4
[movie_name] => Harvey
[genre_id] => 4
[genre_title] => Action/Adventure
[rating_id] => 2
[rating_title] => Pg-16 (USA)
[person_id] => 18
[person_name] => Myles Connolly
[role_title] => writer
)
)