Hash->extract($row, $field['data_path']); foreach ($data as $key => $element) { if (!is_numeric($key)) { $data[$key] = sprintf( '%s: %s', h($key), h($element) ); } else { $data[$key] = h($element); } } $data = implode('', $data); echo $data; ?>