1 2 3 4 5 6 7 8 9
<?php $string = "submissions.php?department=Settings,%20Security%20&%20Payments"; $decoded = urldecode($string); echo "Original string: $string\n"; echo "Decoded string: $decoded\n"; ?>
1 2
Original string: submissions.php?department=Settings,%20Security%20&%20Payments Decoded string: submissions.php?department=Settings, Security & Payments