Encoding and Decoding a Query String

Ever had to pass a url parameter with special characters and then your application has trouble decoding it back? Or maybe you need to pass this parameter to a shell script, I've encountered this situation with the PHP Photo Gallery, sometimes some galleries would contain ampersands, single quotes or double quotes, so I created two simple functions to handle this in the gallery.

strings.php




Popular Posts