magp.ie
Find subset of associative array in PHP
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.