I need to search $array_2 for a json_encode()'d value from $array_1.
If item_id in $array_1 does not match the item_id in the some_field field in $array_2 then I need that array index so I can insert that into the database.
I've tried using in_array() but that won't work because the arrays have different keys.
Also array_diff() will not work because the array indexes have no relation.
$array_1:
Array
(
[0] => Array
(
[id] => 34
[item_id] => sfg4et4
)
[1] => Array
(
[id] => 472
[item_id] => adadgt4
)
)
$array_2;
Array
(
[0] => Array
(
[some_field] => {"item_id":"mlkjm980"}
)
[1] => Array
(
[some_field] => {"item_id":"fsff5ssa"}
)
)
array_diff()will not work either.