3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $item = ( Array ( Array( 'group_roles_name' => 'CREATOR' ) ) ); $value = "CREATOR"; if(is_array($item) && !array_search($value,$item)){ // not equal, break de loop $itemFound = false; echo "not found"; } else if(is_array($item) && array_search($value,$item)){ echo "found"; }
based on H81hc
Output for 4.3.0 - 7.2.0
not found