I realize that in a URL, the + symbol represents a space, however I need to keep the plus sign. How can I do this? My URL and code are as follows:
http://www.example.com/path/test.php?test=2+2
<?php
$test = $_GET['test'];
echo $test;
?>
This prints out 2 2
+
you need%2B
.http://example.com/path/test.php?test=2%2B2