Hi,
I successfully got all movie details along with the getCast() array which includes all movie actors along with their information. Among this information is the Character the actor plays in the movie.
How do I get this information??
For example for movie "The Suicide Squad (2021)" with tmdb_id 436969..
This is the info I get for the first actor
Array
(
[0] => Person Object
(
[_data:Person:private] => Array
(
[adult] =>
[gender] => 1
[id] => 234352
[known_for_department] => Acting
[name] => Margot Robbie
[original_name] => Margot Robbie
[popularity] => 84.384
[profile_path] => /euDPyqLnuwaWMHajcU3oZ9uZezR.jpg
[cast_id] => 33
[character] => Harleen Quinzel / Harley Quinn
[credit_id] => 5ca268419251411a16098d23
[order] => 0
)
)
...and the array continues..
I can get almost all data via the defined functions, for example I get the name of the actor with person->getName()..
How do I get the "character"??
Hi, I successfully got all movie details along with the getCast() array which includes all movie actors along with their information. Among this information is the Character the actor plays in the movie. How do I get this information??
For example for movie "The Suicide Squad (2021)" with tmdb_id 436969.. This is the info I get for the first actor Array ( [0] => Person Object ( [_data:Person:private] => Array ( [adult] => [gender] => 1 [id] => 234352 [known_for_department] => Acting [name] => Margot Robbie [original_name] => Margot Robbie [popularity] => 84.384 [profile_path] => /euDPyqLnuwaWMHajcU3oZ9uZezR.jpg [cast_id] => 33 [character] => Harleen Quinzel / Harley Quinn [credit_id] => 5ca268419251411a16098d23 [order] => 0 )
...and the array continues..
I can get almost all data via the defined functions, for example I get the name of the actor with person->getName().. How do I get the "character"??