1
Answer

Urlencode and urldecode

Photo of Mike Steward

Mike Steward

13y
5k
1
Hi friends,
  I want to know that What is urlencode and urldecode?

Thanks

Answers (1)

0
Photo of Satyapriya Nayak
NA 53k 8m 13y
Hi Mike,

Urlencode can be used to encode a string that can be used in a url. It encodes the same way posted data from web page is encoded. It returns the encoded string.
Syntax: urlencode (string $str )

Urldecode can be used to decode a string. Decodes any %## encoding in the given string (Inserted by urlencode)
Syntax: urldecode (string $str )


Please refer the below link


http://www.php.net/manual/en/function.urlencode.php

http://php.net/manual/en/function.urldecode.php



Thanks