- var_dump: documentation ( source)
- array_intersect_key: documentation ( source)
- array_flip: documentation ( source)
<?php
$keys = array(1,2,3,6,9); //note that 9 does not exist as key in the $values array
$values = array('000', '001', '002', '003', '004', '005', '006', '007');
$data = array_intersect_key($values, array_flip($keys));
var_dump($data);