$ Dollar Sign
This function performs the same function as imap_qprint but does not require the
IMAP extension.
<?
$command = "echo 'hello\?'";
print(quoted_printable_decode($command));
?>
string quotemeta(string command_text)
The quotemeta function returns the command_text argument with backslashes
preceding special characters. These characters are listed in Table 9.7. Compare this
function to addslashes and escapeshellcmd. If your intention is
to ensure that user data will cause no harm when placed
within a shell command, use escapeshellcmd.
The quotemeta function may be adequate for assembling PHP code passed to eval.
Notice in the example below how characters with special meaning inside double quotes
are escaped by quote meta, thus defeating an attempt at displaying the password
variable.
<?
//simulate user input
$input = '$password';
//assemble safe PHP command
$cmd = '$text = "'. quotemeta($input). '";';
//execute command
eval($cmd);
//print new value of $text
print($text);
?>
string rawurldecode(string url_text)