pixelead0 / tmdb_v3-PHP-API-

Wrapper in PHP for The Movie Data Base version 3
119 stars 81 forks source link

Error Handler #83

Open kevingorman1000 opened 2 years ago

kevingorman1000 commented 2 years ago

When doing a $tmdb->getMovie($movieId);, what is the best way to return false if said movie doesn't exist?

For example, $tmdb->getMovie(asdasdas); would return false as asdasdas wouldn't be a valid movie ID.