json - How can I return a "CGI Escaped String" in PHP? -
the tmdb documentation says have put cgi escaped string in order json request. use php , have following string.
$string = "movie name"; $search = $tmdb->searchmovie($string);
$string have "cgi escaped" put in json api request.
any ideas? thank you
it means
urlencode(string);
so in case:
$search = $tmdb->searchmovie(urlencode($string));
Comments
Post a Comment