Junior PHP Developer Question:

Explain difference between urlencode and urldecode?

Junior PHP Developer Interview Question
Junior PHP Developer Interview Question

Answer:

This method is best when encode a string to used in a query part of a url. it returns a string in which all non-alphanumeric characters except -_. have replece with a percentege(%) sign . the urldecode->Decodes url to encode string as any %and other symbole are decode by the use of the urldecode() function.


Previous QuestionNext Question
Tell me what is the main difference between require() and require_once()?Tell me how to set a page as a home page in a php based site?