PHP JSON String, escape Double Quotes for JS output

后端 未结 7 1129
旧时难觅i
旧时难觅i 2020-11-29 04:44

I\'m creating a JSON string from a PHP array. I\'ve encoded it using json_encode().

$data = array(
    \'title\' => \'Example string\\\'s wit         


        
7条回答
  •  既然无缘
    2020-11-29 05:33

    Error come on script not in HTML tags.

    
    






    'loKESH"'."'\\\\", 'email'=>'imvsrajput@demo.demo', 'time'=>date('H:i:00'), 'date'=>date('Y-m-d'), 'detail'=>'Try this var_dump(0=="ZERO") \\ \\"'." ' \\\\ ", 'id'=>123, ]; ?>

提交回复
热议问题