phprockers-logo

What is meant by urlencode and urldecode?

string urlencode(str)

Where str contains a string like this “hello world” and the return value will be URL encoded and can be use to append with URLs, normaly used to appned data for GET like someurl.com?var=hello%world


string urldocode(str)


This will simple decode the GET variable’s value

Like it echo (urldecode($_GET_VARS[var])) will output “Hello world”

0 comments:

Post a Comment