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

Who is the father of PHP and explain the changes in PHP versions?

15 Answers   ADISoft Tech, Genpact, PropTiger, TWA,


Why php 7 is faster?

1 Answers  


How to find a length of a string in php?

1 Answers  


What is php crud api?

1 Answers  


How can we extract string ‘abc.com ‘ from a string info@abc.com" target="_blank">http://info@abc.com using regular expression of php?

6 Answers  


Do you know how to declare an array in php?

1 Answers  


What is php and its features?

1 Answers  


How long should a session last?

1 Answers  


What is form submission?

1 Answers  


What is data structure in php?

1 Answers  


What are the special characters you need to escape in single-quoted stings?

1 Answers  


Which operator is used to combine string values in php?

1 Answers  


Categories