2015-07-10 30 views

回答

1

只需添加它們,當你在文件中寫道:

fwrite($file, "[{message: \"$data\" }]"); 

'

fwrite($file, '[{message: "' . $data . '" }]'); 
0

試試這個,創建了出去放和JSON數組編碼它。