fdf_save_string

(PHP 4 >= 4.3.0, PHP 5)

fdf_save_string -- Restituisce un documento FDF come una stringa

Descrizione

string fdf_save_string ( resource fdf_document)

La funzione fdf_save_string() restituisce il documento FDF come una stringa.

Esempio 1. Recupero di un documento FDF come stringa

<?php
$fdf
= fdf_create();
fdf_set_value($fdf, "foo", "bar");
$str = fdf_save_string($fdf);
fdf_close($fdf);
echo
$str;
?>

Visualizzerà qualcosa tipo

%FDF-1.2
%âãÏÓ
1 0 obj
<< 
/FDF << /Fields 2 0 R >> 
>> 
endobj
2 0 obj
[ 
<< /T (foo)/V (bar)>> 
]
endobj
trailer
<<
/Root 1 0 R 

>>
%%EOF

Vedere anche: fdf_save(), fdf_open_string(), fdf_create() e fdf_close().