- 01
- 02
- 03
- 04
- 05
- 06
- 07
- 08
- 09
- 10
- 11
- 12
- 13
- 14
- 15
function EscapePHPString($str)
{
$str = str_replace("\\", "\\\\", $str);
$str = str_replace("\$", "\\\$", $str);
$str = str_replace("\"", "\\"."\"", $str);
return $str;
}
function UnEscapePHPString($str)
{
$str = str_replace("\\\\", "\\", $str);
$str = str_replace("\\\$", "\$", $str);
$str = str_replace("\\\"", "\"", $str);
return $str;
}