public static function &key_array(&$arr, $key) { if (strlen($key)) { $kk = explode('.', $key); $k = array_shift($kk); $newkey = implode('.', $kk); return OOP_ORM_Parse::key_array($arr[$k], $newkey); } else { return $arr; } }