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

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

I need to import mysql 5.1 to 5.5? -

Java, Hibernate, MySQL - store UTC date-time -