Url encode: Difference between revisions
Jump to navigation
Jump to search
imported>StDoodle Created page with '{{ #vardefine:name|url_encode}}{{ #vardefine:return_type|string}}{{ FunctionPage| name={{#var:name}}| function_category=String Handling Routines| function1={{Function| name={{#…' |
imported>Bale mNo edit summary |
||
Line 5: | Line 5: | ||
FunctionPage| | FunctionPage| | ||
name={{#var:name}}| | name={{#var:name}}| | ||
function1={{Function| | function1={{Function| | ||
Line 24: | Line 23: | ||
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()]].| | ||
}} | }} | ||
[[Category:String Handling Routines]] |
Revision as of 05:12, 22 May 2010
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().