Demo: Get people details

Type a people id in the form below to test the code to get people details:

$tmdb  = Factory::create()->getTmdb('your_api_key');

$item  = new Item($tmdb);
$infos = $item->getPeople(11701, array('language' => 'en-EN'));

echo '<h3>People details</h3>';
echo '<ul>';
echo '<li><b>Name: </b>'.$infos->getName().'</li>';
echo '<li><b>Id: </b>'.$infos->getId().'</li>';
echo '</ul>';

See People reference page for availables methods.

Result