I am trying to use a php inbuilt function to compare 2 arrays.
$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);
Notice: Array to string conversion in /storage/whitelist_update.php on line 10
Any help would be appreciated!