Name
urlencode
Synopsis
string urlencode(string url
)
Returns a string created by URI encoding
url
. Certain characters are replaced by
sequences of characters beginning with a %
followed by a hexadecimal number; for
example, spaces are replaced with %20
. This function differs from rawurlencode( )
in that it encodes spaces
as plus signs (+
).
Get Programming PHP, 2nd Edition now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.