ecode variable before passing it in request url php code example Example: php encode url parameters urlencode("query string params");