Filter out special character in json

Filter out special character in json

2012/11/29 Uncategorized 0
$str="`!@#$%^&*()_+[]\{}|;':\",./<>?";
$str=str_replace("\\","\\\\", $str);
$str=str_replace("\"","\\\"", $str);

Leave a Reply

Your email address will not be published.