PHP 获取当前页面cookie值并写入txt文件

2025-05-09 01:41:14
推荐回答(1个)
回答1:

一句话:

file_put_contents("./cookie.txt", json_encode($_COOKIE, JSON_UNESCAPED_UNICODE));