To check the key is present in an array or not Get link Facebook Twitter Pinterest Email Other Apps - May 04, 2024 <?php $haystack = array('foo','b','bar'); $target = array('foo', 'bar'); if(count(array_intersect($haystack, $target)) == count($target)){ echo "present"; }else{ echo "not present"; } ?> Read more