- urldecode: documentation ( source)
- rawurlencode: documentation ( source)
- urlencode: documentation ( source)
- rawurldecode: documentation ( source)
<?php
echo rawurlencode('green and red');
echo "\n";
echo urlencode('green and red');
echo "\n";
echo "\n";
echo rawurldecode('green+and+red');
echo "\n";
echo urldecode('green+and+red');