eo_array_key_whitelist
eo_array_key_whitelist( $array, $whitelist = array() )
Given an array, it returns only the values whose key exists in a given key whitelist.
Parameters
array
|
$array |
The array for which we wish to weed out non whitelisted values.
|
array
|
$whitelist = array() |
An array of permissable keys.
|
Return value
array
|
The original array with non-permissable keys removed
|