Url encode: Difference between revisions
Jump to navigation
Jump to search
imported>Bale mNo edit summary |
imported>Ulti adding entity_encode and entity_decode to see also |
||
Line 19: | Line 19: | ||
needscode=yes| | needscode=yes| | ||
see_also={{SeeAlso|to_url|url_decode}}| | see_also={{SeeAlso|to_url|url_decode|entity_encode|entity_decode|}}| | ||
more_info=See the w3c page [http://www.w3schools.com/tags/ref_urlencode.asp here] for more info.| | more_info=See the w3c page [http://www.w3schools.com/tags/ref_urlencode.asp here] for more info.| | ||
special=String converted by this function can be returned to their original form with [[url_decode|url_decode()]].| | special=String converted by this function can be returned to their original form with [[url_decode|url_decode()]].| |
Revision as of 16:51, 14 October 2014
needs(code_samples);
Function Syntax
string url_encode(string source )
- source is the original to encode
Returns the encoded version of the supplied source string with all non-alphanumeric characters replaced with the standard URI-encoded escape sequences. For example, spaces are replaced with "+" and other special characters are replaced by "%" followed by a two-digit (hexadecimal) character code.
See Also
More Information
See the w3c page here for more info.
Special
String converted by this function can be returned to their original form with url_decode().