note 110643 deleted from function.in-array by danbrown

From: Date: Thu, 06 Dec 2012 14:16:12 +0000
Subject: note 110643 deleted from function.in-array by danbrown
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-192315@lists.php.net to get a copy of this message
Note Submitter: thomas at landauer dot at ---- Function to check if EVERY needle-array-value is in an hackstack-array. See Quaquaversal's (20-May-2007) array_in_array() to check if ANY needle-value is in the hackstack-array. <?php function array_all_in_array($needles, $haystack) { foreach ($needles as $needle) { if ( ! in_array($needle, $haystack) ) { return false; } } return true; } ?>

« previous php.notes (#192315) next »