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);

read count : 260

Leave a Reply

Your email address will not be published. Required fields are marked *