1 2 3 4
<?php $string='"This is a \"cool\" string"'; echo json_decode($string);
1
This is a "cool" string