(PHP 4 >= 4.3.0, PHP 5 < 5.3.0, PECL fdf SVN)
fdf_save_string — FDF ドキュメントを文字列として返す
ドキュメントを表す文字列、あるいはエラー時に false
を返します。
例1 FDF の文字列での取得
<?php
$fdf = fdf_create();
fdf_set_value($fdf, "foo", "bar");
$str = fdf_save_string($fdf);
fdf_close($fdf);
echo $str;
?>
上の例の出力は以下となります。
%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
Follow Lee on X/Twitter - Father, Husband, Serial builder creating AI, crypto, games & web tools. We are friends :) AI Will Come To Life!
Check out: eBank.nz (Art Generator) |
Netwrck.com (AI Tools) |
Text-Generator.io (AI API) |
BitBank.nz (Crypto AI) |
ReadingTime (Kids Reading) |
RewordGame |
BigMultiplayerChess |
WebFiddle |
How.nz |
Helix AI Assistant