What is the equivalent of JavaScript's decodeURIcomponent in PHP?

Solution 1:

urldecode()

However you do not need to use it on $_REQUEST variables, which are already decoded automatically.

Solution 2:

rawurldecode() which does not decode plus to space charactor