У меня есть 2 многомерных массива, мне нужно вычислить расхождение между ними, я пробовал их сравнить функцией array_diff но выводит ошибку, как я понял потому что array_diff принимает одномерный массив, мои массивы ниже
array ( 0 => array ( 'id' => '1', 'tablename' => 'ITEMANUFACTURER', 'actionfield01' => '1', 'actionfield02' => NULL, 'action' => 'I', 'code' => '1', 'description' => 'Manufacturer 1', 'rtiprice' => NULL, 'colorcode' => NULL, 'colordescr' => NULL, 'size' => NULL, 'sizethesi' => NULL, 'category' => NULL, 'sezon' => NULL, 'sex' => NULL, 'age' => NULL, 'mnfid' => NULL, 'composition' => NULL, 'eshopdisable' => NULL, 'actionremarks' => NULL, 'iteremain' => NULL, 'addvalidate' => '1 ', 'actiondate' => '2019-02-19 20:02:45', ), 1 => array ( 'id' => '2', 'tablename' => 'ITEMANUFACTURER', 'actionfield01' => NULL, 'actionfield02' => NULL, 'action' => NULL, 'code' => NULL, 'description' => NULL, 'rtiprice' => NULL, 'colorcode' => NULL, 'colordescr' => NULL, 'size' => NULL, 'sizethesi' => NULL, 'category' => NULL, 'sezon' => NULL, 'sex' => NULL, 'age' => NULL, 'mnfid' => NULL, 'composition' => NULL, 'eshopdisable' => NULL, 'actionremarks' => NULL, 'iteremain' => NULL, 'addvalidate' => '1 ', 'actiondate' => NULL, ), 2 => array ( 'id' => '3', 'tablename' => 'ITEMANUFACTURER', 'actionfield01' => '3', 'actionfield02' => NULL, 'action' => 'I', 'code' => '2', 'description' => 'Manufacturer 2', 'rtiprice' => NULL, 'colorcode' => NULL, 'colordescr' => NULL, 'size' => NULL, 'sizethesi' => NULL, 'category' => NULL, 'sezon' => NULL, 'sex' => NULL, 'age' => NULL, 'mnfid' => NULL, 'composition' => NULL, 'eshopdisable' => NULL, 'actionremarks' => NULL, 'iteremain' => NULL, 'addvalidate' => '1 ', 'actiondate' => NULL, ), )array ( 0 => array ( 'id' => '1', 'tablename' => 'ITEMANUFACTURER', 'actionfield01' => '1', 'actionfield02' => NULL, 'action' => 'I', 'code' => '1', 'description' => 'Manufacturer 1', 'rtiprice' => NULL, 'colorcode' => NULL, 'colordescr' => NULL, 'size' => NULL, 'sizethesi' => NULL, 'category' => NULL, 'sezon' => NULL, 'sex' => NULL, 'age' => NULL, 'mnfid' => NULL, 'composition' => NULL, 'eshopdisable' => NULL, 'actionremarks' => NULL, 'iteremain' => NULL, 'addvalidate' => '1 ', 'actiondate' => '2019-02-19 20:02:45', ), 1 => array ( 'id' => '2', 'tablename' => 'ITEMANUFACTURER', 'actionfield01' => NULL, 'actionfield02' => NULL, 'action' => NULL, 'code' => NULL, 'description' => NULL, 'rtiprice' => NULL, 'colorcode' => NULL, 'colordescr' => NULL, 'size' => NULL, 'sizethesi' => NULL, 'category' => NULL, 'sezon' => NULL, 'sex' => NULL, 'age' => NULL, 'mnfid' => NULL, 'composition' => NULL, 'eshopdisable' => NULL, 'actionremarks' => NULL, 'iteremain' => NULL, 'addvalidate' => '1 ', 'actiondate' => NULL, ), 2 => array ( 'id' => '3', 'tablename' => 'ITEMANUFACTURER', 'actionfield01' => '3', 'actionfield02' => NULL, 'action' => 'I', 'code' => '2', 'description' => 'Manufacturer 2', 'rtiprice' => NULL, 'colorcode' => NULL, 'colordescr' => NULL, 'size' => NULL, 'sizethesi' => NULL, 'category' => NULL, 'sezon' => NULL, 'sex' => NULL, 'age' => NULL, 'mnfid' => NULL, 'composition' => NULL, 'eshopdisable' => NULL, 'actionremarks' => NULL, 'iteremain' => NULL, 'addvalidate' => '1 ', 'actiondate' => NULL, ), )array ( 0 => array ( 'id' => '1', 'tablename' => 'ITEMANUFACTURER', 'actionfield01' => '1', 'actionfield02' => NULL, 'action' => 'I', 'code' => '1', 'description' => 'Manufacturer 1', 'rtiprice' => NULL, 'colorcode' => NULL, 'colordescr' => NULL, 'size' => NULL, 'sizethesi' => NULL, 'category' => NULL, 'sezon' => NULL, 'sex' => NULL, 'age' => NULL, 'mnfid' => NULL, 'composition' => NULL, 'eshopdisable' => NULL, 'actionremarks' => NULL, 'iteremain' => NULL, 'addvalidate' => '1 ', 'actiondate' => '2019-02-19 20:02:45', ), 1 => array ( 'id' => '2', 'tablename' => 'ITEMANUFACTURER', 'actionfield01' => NULL, 'actionfield02' => NULL, 'action' => NULL, 'code' => NULL, 'description' => NULL, 'rtiprice' => NULL, 'colorcode' => NULL, 'colordescr' => NULL, 'size' => NULL, 'sizethesi' => NULL, 'category' => NULL, 'sezon' => NULL, 'sex' => NULL, 'age' => NULL, 'mnfid' => NULL, 'composition' => NULL, 'eshopdisable' => NULL, 'actionremarks' => NULL, 'iteremain' => NULL, 'addvalidate' => '1 ', 'actiondate' => NULL, ), 2 => array ( 'id' => '3', 'tablename' => 'ITEMANUFACTURER', 'actionfield01' => '3', 'actionfield02' => NULL, 'action' => 'I', 'code' => '2', 'description' => 'Manufacturer 2', 'rtiprice' => NULL, 'colorcode' => NULL, 'colordescr' => NULL, 'size' => NULL, 'sizethesi' => NULL, 'category' => NULL, 'sezon' => NULL, 'sex' => NULL, 'age' => NULL, 'mnfid' => NULL, 'composition' => NULL, 'eshopdisable' => NULL, 'actionremarks' => NULL, 'iteremain' => NULL, 'addvalidate' => '1 ', 'actiondate' => NULL, ), )array ( 0 => array ( 'id' => '1', 'tablename' => 'ITEMANUFACTURER', 'actionfield01' => '1', 'actionfield02' => NULL, 'action' => 'I', 'code' => '1', 'description' => 'Manufacturer 1', 'rtiprice' => NULL, 'colorcode' => NULL, 'colordescr' => NULL, 'size' => NULL, 'sizethesi' => NULL, 'category' => NULL, 'sezon' => NULL, 'sex' => NULL, 'age' => NULL, 'mnfid' => NULL, 'composition' => NULL, 'eshopdisable' => NULL, 'actionremarks' => NULL, 'iteremain' => NULL, 'addvalidate' => '1 ', 'actiondate' => '2019-02-19 20:02:45', ), 1 => array ( 'id' => '2', 'tablename' => 'ITEMANUFACTURER', 'actionfield01' => NULL, 'actionfield02' => NULL, 'action' => NULL, 'code' => NULL, 'description' => NULL, 'rtiprice' => NULL, 'colorcode' => NULL, 'colordescr' => NULL, 'size' => NULL, 'sizethesi' => NULL, 'category' => NULL, 'sezon' => NULL, 'sex' => NULL, 'age' => NULL, 'mnfid' => NULL, 'composition' => NULL, 'eshopdisable' => NULL, 'actionremarks' => NULL, 'iteremain' => NULL, 'addvalidate' => '1 ', 'actiondate' => NULL, ), 2 => array ( 'id' => '3', 'tablename' => 'ITEMANUFACTURER', 'actionfield01' => '3', 'actionfield02' => NULL, 'action' => 'I', 'code' => '2', 'description' => 'Manufacturer 2', 'rtiprice' => NULL, 'colorcode' => NULL, 'colordescr' => NULL, 'size' => NULL, 'sizethesi' => NULL, 'category' => NULL, 'sezon' => NULL, 'sex' => NULL, 'age' => NULL, 'mnfid' => NULL, 'composition' => NULL, 'eshopdisable' => NULL, 'actionremarks' => NULL, 'iteremain' => NULL, 'addvalidate' => '1 ', 'actiondate' => NULL, ), )
Второй массив
array ( 0 => array ( 'ID' => 1, 'TABLENAME' => 'ITEMANUFACTURER', 'ACTIONFIELD01' => '1', 'ACTIONFIELD02' => NULL, 'ACTION' => 'I', 'Code' => '1', 'Description' => 'Manufacturer 1', 'RtIPrice' => NULL, 'ColorCode' => NULL, 'ColorDescr' => NULL, 'Size' => NULL, 'SizeThesi' => NULL, 'Category' => NULL, 'Sezon' => NULL, 'Sex' => NULL, 'Age' => NULL, 'Mnfid' => NULL, 'Composition' => NULL, 'EshopDisable' => NULL, 'IteRemain' => NULL, 'ActionRemarks' => NULL, 'ActionDate' => '2019-02-19 20:02:44.647', 'AddValidate' => '1 ', ), 1 => array ( 'ID' => 2, 'TABLENAME' => 'ITEMANUFACTURER', 'ACTIONFIELD01' => NULL, 'ACTIONFIELD02' => NULL, 'ACTION' => NULL, 'Code' => NULL, 'Description' => NULL, 'RtIPrice' => NULL, 'ColorCode' => NULL, 'ColorDescr' => NULL, 'Size' => NULL, 'SizeThesi' => NULL, 'Category' => NULL, 'Sezon' => NULL, 'Sex' => NULL, 'Age' => NULL, 'Mnfid' => NULL, 'Composition' => NULL, 'EshopDisable' => NULL, 'IteRemain' => NULL, 'ActionRemarks' => NULL, 'ActionDate' => NULL, 'AddValidate' => '1 ', ), 2 => array ( 'ID' => 3, 'TABLENAME' => 'ITEMANUFACTURER', 'ACTIONFIELD01' => '3', 'ACTIONFIELD02' => NULL, 'ACTION' => 'I', 'Code' => '2', 'Description' => 'Manufacturer 2', 'RtIPrice' => NULL, 'ColorCode' => NULL, 'ColorDescr' => NULL, 'Size' => NULL, 'SizeThesi' => NULL, 'Category' => NULL, 'Sezon' => NULL, 'Sex' => NULL, 'Age' => NULL, 'Mnfid' => NULL, 'Composition' => NULL, 'EshopDisable' => NULL, 'IteRemain' => NULL, 'ActionRemarks' => NULL, 'ActionDate' => NULL, 'AddValidate' => '1 ', ), 3 => array ( 'ID' => 4, 'TABLENAME' => '5', 'ACTIONFIELD01' => '6', 'ACTIONFIELD02' => '7', 'ACTION' => '8', 'Code' => NULL, 'Description' => NULL, 'RtIPrice' => NULL, 'ColorCode' => NULL, 'ColorDescr' => NULL, 'Size' => NULL, 'SizeThesi' => NULL, 'Category' => NULL, 'Sezon' => NULL, 'Sex' => NULL, 'Age' => NULL, 'Mnfid' => NULL, 'Composition' => NULL, 'EshopDisable' => NULL, 'IteRemain' => NULL, 'ActionRemarks' => NULL, 'ActionDate' => NULL, 'AddValidate' => '1 ', ), )array ( 0 => array ( 'ID' => 1, 'TABLENAME' => 'ITEMANUFACTURER', 'ACTIONFIELD01' => '1', 'ACTIONFIELD02' => NULL, 'ACTION' => 'I', 'Code' => '1', 'Description' => 'Manufacturer 1', 'RtIPrice' => NULL, 'ColorCode' => NULL, 'ColorDescr' => NULL, 'Size' => NULL, 'SizeThesi' => NULL, 'Category' => NULL, 'Sezon' => NULL, 'Sex' => NULL, 'Age' => NULL, 'Mnfid' => NULL, 'Composition' => NULL, 'EshopDisable' => NULL, 'IteRemain' => NULL, 'ActionRemarks' => NULL, 'ActionDate' => '2019-02-19 20:02:44.647', 'AddValidate' => '1 ', ), 1 => array ( 'ID' => 2, 'TABLENAME' => 'ITEMANUFACTURER', 'ACTIONFIELD01' => NULL, 'ACTIONFIELD02' => NULL, 'ACTION' => NULL, 'Code' => NULL, 'Description' => NULL, 'RtIPrice' => NULL, 'ColorCode' => NULL, 'ColorDescr' => NULL, 'Size' => NULL, 'SizeThesi' => NULL, 'Category' => NULL, 'Sezon' => NULL, 'Sex' => NULL, 'Age' => NULL, 'Mnfid' => NULL, 'Composition' => NULL, 'EshopDisable' => NULL, 'IteRemain' => NULL, 'ActionRemarks' => NULL, 'ActionDate' => NULL, 'AddValidate' => '1 ', ), 2 => array ( 'ID' => 3, 'TABLENAME' => 'ITEMANUFACTURER', 'ACTIONFIELD01' => '3', 'ACTIONFIELD02' => NULL, 'ACTION' => 'I', 'Code' => '2', 'Description' => 'Manufacturer 2', 'RtIPrice' => NULL, 'ColorCode' => NULL, 'ColorDescr' => NULL, 'Size' => NULL, 'SizeThesi' => NULL, 'Category' => NULL, 'Sezon' => NULL, 'Sex' => NULL, 'Age' => NULL, 'Mnfid' => NULL, 'Composition' => NULL, 'EshopDisable' => NULL, 'IteRemain' => NULL, 'ActionRemarks' => NULL, 'ActionDate' => NULL, 'AddValidate' => '1 ', ), 3 => array ( 'ID' => 4, 'TABLENAME' => '5', 'ACTIONFIELD01' => '6', 'ACTIONFIELD02' => '7', 'ACTION' => '8', 'Code' => NULL, 'Description' => NULL, 'RtIPrice' => NULL, 'ColorCode' => NULL, 'ColorDescr' => NULL, 'Size' => NULL, 'SizeThesi' => NULL, 'Category' => NULL, 'Sezon' => NULL, 'Sex' => NULL, 'Age' => NULL, 'Mnfid' => NULL, 'Composition' => NULL, 'EshopDisable' => NULL, 'IteRemain' => NULL, 'ActionRemarks' => NULL, 'ActionDate' => NULL, 'AddValidate' => '1 ', ), )array ( 0 => array ( 'ID' => 1, 'TABLENAME' => 'ITEMANUFACTURER', 'ACTIONFIELD01' => '1', 'ACTIONFIELD02' => NULL, 'ACTION' => 'I', 'Code' => '1', 'Description' => 'Manufacturer 1', 'RtIPrice' => NULL, 'ColorCode' => NULL, 'ColorDescr' => NULL, 'Size' => NULL, 'SizeThesi' => NULL, 'Category' => NULL, 'Sezon' => NULL, 'Sex' => NULL, 'Age' => NULL, 'Mnfid' => NULL, 'Composition' => NULL, 'EshopDisable' => NULL, 'IteRemain' => NULL, 'ActionRemarks' => NULL, 'ActionDate' => '2019-02-19 20:02:44.647', 'AddValidate' => '1 ', ), 1 => array ( 'ID' => 2, 'TABLENAME' => 'ITEMANUFACTURER', 'ACTIONFIELD01' => NULL, 'ACTIONFIELD02' => NULL, 'ACTION' => NULL, 'Code' => NULL, 'Description' => NULL, 'RtIPrice' => NULL, 'ColorCode' => NULL, 'ColorDescr' => NULL, 'Size' => NULL, 'SizeThesi' => NULL, 'Category' => NULL, 'Sezon' => NULL, 'Sex' => NULL, 'Age' => NULL, 'Mnfid' => NULL, 'Composition' => NULL, 'EshopDisable' => NULL, 'IteRemain' => NULL, 'ActionRemarks' => NULL, 'ActionDate' => NULL, 'AddValidate' => '1 ', ), 2 => array ( 'ID' => 3, 'TABLENAME' => 'ITEMANUFACTURER', 'ACTIONFIELD01' => '3', 'ACTIONFIELD02' => NULL, 'ACTION' => 'I', 'Code' => '2', 'Description' => 'Manufacturer 2', 'RtIPrice' => NULL, 'ColorCode' => NULL, 'ColorDescr' => NULL, 'Size' => NULL, 'SizeThesi' => NULL, 'Category' => NULL, 'Sezon' => NULL, 'Sex' => NULL, 'Age' => NULL, 'Mnfid' => NULL, 'Composition' => NULL, 'EshopDisable' => NULL, 'IteRemain' => NULL, 'ActionRemarks' => NULL, 'ActionDate' => NULL, 'AddValidate' => '1 ', ), 3 => array ( 'ID' => 4, 'TABLENAME' => '5', 'ACTIONFIELD01' => '6', 'ACTIONFIELD02' => '7', 'ACTION' => '8', 'Code' => NULL, 'Description' => NULL, 'RtIPrice' => NULL, 'ColorCode' => NULL, 'ColorDescr' => NULL, 'Size' => NULL, 'SizeThesi' => NULL, 'Category' => NULL, 'Sezon' => NULL, 'Sex' => NULL, 'Age' => NULL, 'Mnfid' => NULL, 'Composition' => NULL, 'EshopDisable' => NULL, 'IteRemain' => NULL, 'ActionRemarks' => NULL, 'ActionDate' => NULL, 'AddValidate' => '1 ', ), )array ( 0 => array ( 'ID' => 1, 'TABLENAME' => 'ITEMANUFACTURER', 'ACTIONFIELD01' => '1', 'ACTIONFIELD02' => NULL, 'ACTION' => 'I', 'Code' => '1', 'Description' => 'Manufacturer 1', 'RtIPrice' => NULL, 'ColorCode' => NULL, 'ColorDescr' => NULL, 'Size' => NULL, 'SizeThesi' => NULL, 'Category' => NULL, 'Sezon' => NULL, 'Sex' => NULL, 'Age' => NULL, 'Mnfid' => NULL, 'Composition' => NULL, 'EshopDisable' => NULL, 'IteRemain' => NULL, 'ActionRemarks' => NULL, 'ActionDate' => '2019-02-19 20:02:44.647', 'AddValidate' => '1 ', ), 1 => array ( 'ID' => 2, 'TABLENAME' => 'ITEMANUFACTURER', 'ACTIONFIELD01' => NULL, 'ACTIONFIELD02' => NULL, 'ACTION' => NULL, 'Code' => NULL, 'Description' => NULL, 'RtIPrice' => NULL, 'ColorCode' => NULL, 'ColorDescr' => NULL, 'Size' => NULL, 'SizeThesi' => NULL, 'Category' => NULL, 'Sezon' => NULL, 'Sex' => NULL, 'Age' => NULL, 'Mnfid' => NULL, 'Composition' => NULL, 'EshopDisable' => NULL, 'IteRemain' => NULL, 'ActionRemarks' => NULL, 'ActionDate' => NULL, 'AddValidate' => '1 ', ), 2 => array ( 'ID' => 3, 'TABLENAME' => 'ITEMANUFACTURER', 'ACTIONFIELD01' => '3', 'ACTIONFIELD02' => NULL, 'ACTION' => 'I', 'Code' => '2', 'Description' => 'Manufacturer 2', 'RtIPrice' => NULL, 'ColorCode' => NULL, 'ColorDescr' => NULL, 'Size' => NULL, 'SizeThesi' => NULL, 'Category' => NULL, 'Sezon' => NULL, 'Sex' => NULL, 'Age' => NULL, 'Mnfid' => NULL, 'Composition' => NULL, 'EshopDisable' => NULL, 'IteRemain' => NULL, 'ActionRemarks' => NULL, 'ActionDate' => NULL, 'AddValidate' => '1 ', ), 3 => array ( 'ID' => 4, 'TABLENAME' => '5', 'ACTIONFIELD01' => '6', 'ACTIONFIELD02' => '7', 'ACTION' => '8', 'Code' => NULL, 'Description' => NULL, 'RtIPrice' => NULL, 'ColorCode' => NULL, 'ColorDescr' => NULL, 'Size' => NULL, 'SizeThesi' => NULL, 'Category' => NULL, 'Sezon' => NULL, 'Sex' => NULL, 'Age' => NULL, 'Mnfid' => NULL, 'Composition' => NULL, 'EshopDisable' => NULL, 'IteRemain' => NULL, 'ActionRemarks' => NULL, 'ActionDate' => NULL, 'AddValidate' => '1 ', ), )