I was looking for a way of solving a problem of returning keys and data from an a array.
The keys are 7,8,9,10 and \"size\",\"atime\",\"mtime\",\"ctime\" from an arr
If I'm understanding your question correctly, it's as simple as this:
array_intersect_key($array, array_flip(array('size', 'atime', ..)))
http://php.net/array_intersect_key