Decode() Function

The decode function decodes any URL-encoded characters in the input string passed as an argument.

For example, if a string contains the %20 character , the decode () function decodes it to the space character.

In the following example, Single%20general%20admission is converted as Single general admission.