-4

test.php?aa=c++ and echo $_GET['aa'] result only c without ++

<?php
    echo $_GET['aa'];
 ?>
brombeer
  • 8,716
  • 5
  • 21
  • 27

1 Answers1

1

That's because the symbol for + is treated as white space by your browser or HTTP client! If you want to actually send the symbol + in your get request, please encode it first in your web browser.

You can try converting your C++ with tools such as this one https://www.w3schools.com/tags/ref_urlencode.ASP.