我正在尝试使用php内置函数来比较2个数组。
$json = json_decode(file_get_contents("new.json"), true);
$last_json = json_decode(file_get_contents("last.json"), true);
$difference = array_diff_assoc($json, $last_json);
注意:第10行/storage/whitelist_update.php中的数组到字符串转换
任何帮助将不胜感激!