I have: http://www.example.com/index.php?amount=15%252E8
In index.php:
$test = $_GET['amount'];
echo $test;
// Output: 15%2E8
But I don't need 15%2E8, I need 15.8
$test = $_GET['amount'];
$test = urldecode($test);
echo $test;
//Output: 15.8
But in https://www.php.net/manual/en/function.urldecode.php they warn:
Warning: The superglobals $_GET and $_REQUEST are already decoded. Using urldecode() on an element in $_GET or $_REQUEST could have unexpected and dangerous results.
Why $_GET['amount'] does not get 15.8 ?!