3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $arr1 = array(array("key" => "delete", "label" => "hi Delete"),array("key" => "edit", "label" => "hi Edit"), array("key" => "update", "label" => "hi update")); $diff = array_diff_assoc( array("key" => "delete", "label" => "hi Delete"),$arr1); foreach ($arr1 as $key => $value) { if ($value["key"] == 'delete' && $value["label"] == 'hi Delete' ) { unset($arr1[$key]); } } print_r($arr1); ?>
based on ZYetR
Output for 5.6.0 - 7.3.0alpha1
Array ( [1] => Array ( [key] => edit [label] => hi Edit ) [2] => Array ( [key] => update [label] => hi update ) )