$v) { if (isset($child[$k])) { $data[$k]['child'] = $child[$k]; } } } return $data; } }