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

Popular posts from this blog

matlab - Deleting rows with specific rules -

image - ClassNotFoundException when add a prebuilt apk into system.img in android -