比较数组时的数组到字符串转换

时间:2016-05-06 16:15:50

标签: php arrays

我正在尝试使用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中的数组到字符串转换

任何帮助将不胜感激!

0 个答案:

没有答案