ID: 35
Category: PHP7
Added: 27th of November 2015
Views: 4,895
If you ever need to pass an ampersand through a query string in your URL and echo the result at the other end using PHP, you need to use the urlencode and urldecode function in your scripts.
If you don't add the urlencode or urldecode function then only the first part of the variable will be sent and anything after the & will be removed from the result.