$content =array(‘color‘=> array(‘blue‘,‘red‘,‘green‘),‘size‘=> array(‘small‘,‘medium‘,‘large‘));
$wx=json_encode($content);
echo file_put_contents("test.txt", $wx, FILE_APPEND);
时间: 2024-11-13 08:15:07
$content =array(‘color‘=> array(‘blue‘,‘red‘,‘green‘),‘size‘=> array(‘small‘,‘medium‘,‘large‘));
$wx=json_encode($content);
echo file_put_contents("test.txt", $wx, FILE_APPEND);