php function to url encode code example Example: php encode url parameters urlencode("query string params");