You are here

function print_fields in FillPDF 5

1 call to print_fields()
createXFDF in ./xfdf.inc
createXFDF

File

./xfdf.inc, line 33

Code

function print_fields($info) {
  $fields = array();
  foreach ($info as $field => $val) {
    $arr = explode('.', $field);
    $str .= '$fields';
    foreach ($arr as $node) {
      $str .= "['{$node}']";
    }
    $str .= "='" . escape_string($val) . "';";
  }
  eval($str);
  $str = '';
  foreach ($fields as $field => $val) {
    print_fields_recurse($field, $val, $str);
  }
  return $str;
}