function print_fields_recurse in FillPDF 5
1 call to print_fields_recurse()
- print_fields in ./
xfdf.inc
File
- ./
xfdf.inc, line 52
Code
function print_fields_recurse($field, $val, &$str) {
$str .= '<field name="' . $field . '">' . "\n";
if (is_array($val)) {
foreach ($val as $field => $val) {
print_fields_recurse($field, $val, $str);
}
}
else {
$str .= '<value>' . $val . '</value>' . "\n";
}
$str .= '</field>' . "\n";
}