What is the difference between urlencode and urldecode ?

Answers were Sorted based on User's Feedback



What is the difference between urlencode and urldecode ?..

Answer / 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

What is the difference between urlencode and urldecode ?..

Answer / prasadkonnur

urencode function is convenient when encoding a string to
be used in a query part of a URL, as a convenient way to
pass variables to the next page.

urldecode decodes the encoded string.

$_GET and $_REQUEST are all ready in decoded form

Is This Answer Correct ?    15 Yes 0 No

What is the difference between urlencode and urldecode ?..

Answer / ks.tarun

urlencode: encode the Url Query string in a predefined ways.
urldecode: decode the url query string into values as was
passes in the url.

Is This Answer Correct ?    6 Yes 0 No

Post New Answer

More PHP Interview Questions

How can we upload a php + mysql Site

1 Answers  


Tell me how to retrieve a cookie value?

0 Answers  


Write down the benefits of php7?

0 Answers  


What is $_ request in php?

0 Answers  


Does wordpress still use php?

0 Answers  


Name the Functions in IMAP, POP3 AND LDAP?

2 Answers  


am fresher in php ..am finished my linux,apache,mysql,and php(LAMP) course please can any one tell openings for freshers in php ...And please tell how much i demand as a fresher in PHP field just say approximately or assumption ..? at present am staying in chennai am looking my job in chennai only or else in bangalore ... hello experts please answer this question ?

2 Answers   HCL,


What are the benefits of using php?

0 Answers  


What is the difference between php 5 and php 7?

0 Answers  


What is substr in php?

0 Answers  


How to connect to mysql from a php script?

0 Answers  


Is php easier than node?

0 Answers  


Categories