Quantcast
Viewing all articles
Browse latest Browse all 22

Answer by K-Alex for How to check if multiple array keys exists

Hope this helps:

function array_keys_exist($searchForKeys = array(), $inArray = array()) {    $inArrayKeys = array_keys($inArray);    return count(array_intersect($searchForKeys, $inArrayKeys)) == count($searchForKeys); }

Viewing all articles
Browse latest Browse all 22

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>