Categories:
.NET (357)
C (330)
C++ (183)
CSS (84)
DBA (2)
General (7)
HTML (4)
Java (574)
JavaScript (106)
JSP (66)
Oracle (114)
Perl (46)
Perl (1)
PHP (1)
PL/SQL (1)
RSS (51)
Software QA (13)
SQL Server (1)
Windows (1)
XHTML (173)
Other Resources:
urlencode() and urldecode() Functions?
What are urlencode() and urldecode() functions in PHP?
✍: FYIcenter
string urlencode(str) - Returns the URL encoded version of the input string. String values to be used in URL query string need to be URL encoded. In the URL encoded version:
For example, you will get "http://fyicenter.com/rate.php?r=100%25%2B" from this sample code:
<?php $r ="100%+"; $url = "http://fyicenter.com/rate.php?r=".urlencode($r); echo $url; ?>
urldecode() returns the URL decoded version of the given string.
2007-02-27, 7496👍, 0💬
Popular Posts:
How To Set session.gc_divisor Properly? - PHP Script Tips - Understanding and Using Sessions As you ...
Which one of the following statements is TRUE in regard to overloading the ++ operator? 1 You cannot...
How To Manage Transaction Isolation Level? - Oracle DBA FAQ - Introduction to PL/SQL Transaction iso...
What is the output of printf("%d")? 1. When we write printf("%d",x); this means compiler will print ...
How to make elements invisible? Change the "visibility" attribute of the style object associated wit...