Example 1 — Decode a Query Value
Turn plus signs and %26 back into a space and an ampersand.
<?php
$encoded = "Hello+World+%26+Co";
echo urldecode($encoded), PHP_EOL; How It Works
- Start with encoded text.
+stands for a space. - Call urldecode(). Each
+becomes a space. %26becomes&. All%XXcodes are decoded.- Print the text. It is now readable.

