What is the difference between urlencode and urldecode ?

Answer Posted / laxmikant

urlencode() returns the URL encoded version of the given
string. URL coding converts special characters into % signs
followed by two hex digits. For example: urlencode(”10.00%”)
will return “10%2E00%25″. URL encoded strings are safe to be
used as part of URLs.
urldecode() returns the URL decoded version of the given string.

Is This Answer Correct ?    19 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is mvc php?

522


What does session start do in php?

509


What are php applications?

514


Tell me in php, objects are they passed by value or by reference?

537


Can you use php and javascript together?

561






How to get a total number of rows available in the table?

487


Do you know what is the difference between mysql_fetch_object() and mysql_fetch_array()?

526


What is the function file_get_contents() usefull for?

523


What are the different types of PHP arrays?

571


What is difference between print and echo in php?

479


Is age an interval or ratio?

551


How can we check the value of a given variable is alphanumeric?

543


Explain mail function in PHP with syntax?

562


How to register a variable in PHP session?

526


What is printf in php?

528