3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $array1 = array("te","yes","we","no","1","sdfsdf","Resolved"); $array2 = array("another","no","we","no","0","sdfsdf","Unresolved"); $old = array( 'ONE' => array('a' => 1, 'b' => 2, 'c' => 3), 'TWO' => array('a' => 4, 'b' => 5, 'c' => 6), 'THREE' => array('a' => 7, 'b' => 8, 'c' => 9) ); print_r($old); foreach($array1 as $k=>$v){ /*if(in_array($v,$array2 )){ echo "Value $v exists \n"; }else{ echo "Value $v does not exists \n"; }*/ }
based on J206T
Output for 4.3.0 - 7.1.0
Array ( [ONE] => Array ( [a] => 1 [b] => 2 [c] => 3 ) [TWO] => Array ( [a] => 4 [b] => 5 [c] => 6 ) [THREE] => Array ( [a] => 7 [b] => 8 [c] => 9 ) )