What is the difference between urlencode and urldecode ?
Answers were Sorted based on User's Feedback
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 |
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 |
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 |
What is difference between array_merge and array_combine in php?
Why php script is not running in browser?
List some features of php that are deprecated in php
Extract url from this string? It should be flexible for all strings, not for this string only. "yahoo.comyahoo.co.inhotmail.org"
Explain me what is the use of header() function in php?
Explain me what is the difference between $_files['userfile']['name'] and $_files['userfile']['tmp_name']?
How can we access the data sent through the url with the post method?
Is php still in demand?
when ever the user logged in the database table the current registered date will be appeared
Do csrf tokens expire?
I created a cookie with the value like '1A2A',now i want to update this value regularly (about 20 times in a minute) with the value '1A2A3A' , 3A is the new value,new value will vary on the request it may be 3A or 4A or 100A ,some times the cookie is updating with new value but not every time.Can any body suggest the solution
when we use ob_start() function in php then the header() and session_start() does not gives the error like header already sent,please explain in brief