fork(2) download
  1. <?php
  2.  
  3. $a1 = ['a'=>1, 'b'=>2, 'post_title'=>[1,2,3]];
  4. $a2 = ['post_title'=>['a'=>1, 'b'=>2]];
  5. print_r(array_diff_assoc($a1['post_title'], $a2['post_title']));
Success #stdin #stdout 0s 52488KB
stdin
Standard input is empty
stdout
Array
(
    [0] => 1
    [1] => 2
    [2] => 3
)