$netscape = '';
$json = json_decode(file_get_contents('coockie.json'), true);
foreach ($json as $value) {
$netscape .= implode("\t", $value) . PHP_EOL;
}
file_put_contents('coockie.txt');
# Netscape HTTP Cookie File
# http://curl.haxx.se/docs/http-cookies.html
# This file was generated by libcurl! Edit at your own risk.
mail.ru FALSE / FALSE 1396441015 __atuvc 4%7C13
mail.ru FALSE / FALSE 1396181815 __partner_id 1_828_67885_0__
mail.ru FALSE / FALSE 3 n_js 4005609165
mail.ru FALSE / FALSE 0 wf_c_auth true
mail.ru FALSE / FALSE 0 wf_c_chars 0
https://www.php.net/manual/ru/function.mysqli-conn...