This is a simple way to get a subset of associative array elements using an array of keys; basically you extract out the elements you want from a bigger array by listing the keys you need. Continue reading “Find subset of associative array in PHP”
Tag: associative array
Search Associative Array with Wildcard in PHP
Here are a pair of functions that will allow you to search an associative array for either a key or a value, using a string with a wildcard (*).
Continue reading “Search Associative Array with Wildcard in PHP”