- var_dump: documentation ( source)
- array_merge: documentation ( source)
- array_unique: documentation ( source)
<?php
$arr = array(
0 =>
array (
'id' => '3',
'notifications' => '1'),
1 =>
array (
'id' => '4',
'notifications' => '1' )
);
$x = array_unique(call_user_func_array('array_merge', $arr));
var_dump($x);