Open kevingorman1000 opened 2 years ago
When doing a $tmdb->getMovie($movieId);, what is the best way to return false if said movie doesn't exist?
$tmdb->getMovie($movieId);
For example, $tmdb->getMovie(asdasdas); would return false as asdasdas wouldn't be a valid movie ID.
$tmdb->getMovie(asdasdas);
asdasdas
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 asasdasdas
wouldn't be a valid movie ID.