<?php
include_once $_SERVER['DOCUMENT_ROOT'] . '/include/shared-manual.inc';
$TOC = array();
$TOC_DEPRECATED = array();
$PARENTS = array();
include_once dirname(__FILE__) ."/toc/ref.fdf.inc";
$setup = array (
  'home' => 
  array (
    0 => 'index.php',
    1 => 'PHP Manual',
  ),
  'head' => 
  array (
    0 => 'UTF-8',
    1 => 'fr',
  ),
  'this' => 
  array (
    0 => 'function.fdf-save-string.php',
    1 => 'fdf_save_string',
    2 => 'Retourne un document FDF sous forme d\'une cha&icirc;ne de caract&egrave;res',
  ),
  'up' => 
  array (
    0 => 'ref.fdf.php',
    1 => 'Fonctions FDF',
  ),
  'prev' => 
  array (
    0 => 'function.fdf-save.php',
    1 => 'fdf_save',
  ),
  'next' => 
  array (
    0 => 'function.fdf-set-ap.php',
    1 => 'fdf_set_ap',
  ),
  'alternatives' => 
  array (
  ),
  'source' => 
  array (
    'lang' => 'fr',
    'path' => 'reference/fdf/functions/fdf-save-string.xml',
  ),
  'history' => 
  array (
  ),
);
$setup["toc"] = $TOC;
$setup["toc_deprecated"] = $TOC_DEPRECATED;
$setup["parents"] = $PARENTS;
manual_setup($setup);

contributors($setup);

?>
<div id="function.fdf-save-string" class="refentry">
 <div class="refnamediv">
  <h1 class="refname">fdf_save_string</h1>
  <p class="verinfo">(PHP 4 &gt;= 4.3.0, PHP 5 &lt; 5.3.0, PECL fdf SVN)</p><p class="refpurpose"><span class="refname">fdf_save_string</span> &mdash; <span class="dc-title">Retourne un document FDF sous forme d&#039;une <a href="language.types.string.php" class="link">chaîne de caractères</a></span></p>

 </div>

 <div class="refsect1 description" id="refsect1-function.fdf-save-string-description">
  <h3 class="title">Description</h3>
  <div class="methodsynopsis dc-description">
   <span class="methodname"><strong>fdf_save_string</strong></span>(<span class="methodparam"><span class="type"><a href="language.types.resource.php" class="type resource">resource</a></span> <code class="parameter">$fdf_document</code></span>): <span class="type"><a href="language.types.string.php" class="type string">string</a></span></div>

  <p class="simpara">
   Retourne un document FDF sous forme d&#039;une <a href="language.types.string.php" class="link">chaîne de caractères</a>.
  </p>
 </div>


 <div class="refsect1 parameters" id="refsect1-function.fdf-save-string-parameters">
  <h3 class="title">Liste de paramètres</h3>
  <dl>
   
    <dt><code class="parameter">fdf_document</code></dt>
    <dd>
     <span class="simpara">
      Le gestionnaire de document FDF, retourné par la fonction
      <span class="function"><a href="function.fdf-create.php" class="function">fdf_create()</a></span>, la fonction
      <span class="function"><a href="function.fdf-open.php" class="function">fdf_open()</a></span> ou la fonction
      <span class="function"><a href="function.fdf-open-string.php" class="function">fdf_open_string()</a></span>.
     </span>
    </dd>
   
  </dl>
 </div>


 <div class="refsect1 returnvalues" id="refsect1-function.fdf-save-string-returnvalues">
  <h3 class="title">Valeurs de retour</h3>
  <p class="simpara">
   Retourne le document, sous la forme d&#039;une <a href="language.types.string.php" class="link">chaîne de caractères</a>, ou
   <strong><code><a href="reserved.constants.php#constant.false">false</a></code></strong> si une erreur survient.
  </p>
 </div>


 <div class="refsect1 examples" id="refsect1-function.fdf-save-string-examples">
  <h3 class="title">Exemples</h3>
  <div class="example" id="example-1">
   <p><strong>Exemple #1 Lire un document FDF sous forme de <a href="language.types.string.php" class="link">chaîne de caractères</a></strong></p>
   <div class="example-contents">
<div class="phpcode"><code><span style="color: #000000"><span style="color: #0000BB">&lt;?php<br />$fdf </span><span style="color: #007700">= </span><span style="color: #0000BB">fdf_create</span><span style="color: #007700">();<br /></span><span style="color: #0000BB">fdf_set_value</span><span style="color: #007700">(</span><span style="color: #0000BB">$fdf</span><span style="color: #007700">, </span><span style="color: #DD0000">"foo"</span><span style="color: #007700">, </span><span style="color: #DD0000">"bar"</span><span style="color: #007700">);<br /></span><span style="color: #0000BB">$str </span><span style="color: #007700">= </span><span style="color: #0000BB">fdf_save_string</span><span style="color: #007700">(</span><span style="color: #0000BB">$fdf</span><span style="color: #007700">);<br /></span><span style="color: #0000BB">fdf_close</span><span style="color: #007700">(</span><span style="color: #0000BB">$fdf</span><span style="color: #007700">);<br />echo </span><span style="color: #0000BB">$str</span><span style="color: #007700">;<br /></span><span style="color: #0000BB">?&gt;</span></span></code></div>
   </div>

   <div class="example-contents"><p>L&#039;exemple ci-dessus va afficher :</p></div>
   <div class="example-contents screen">
<div class="examplescode"><pre class="examplescode">%FDF-1.2
%âãÏÓ
1 0 obj
&lt;&lt;
/FDF &lt;&lt; /Fields 2 0 R &gt;&gt;
&gt;&gt;
endobj
2 0 obj
[
&lt;&lt; /T (foo)/V (bar)&gt;&gt;
]
endobj
trailer
&lt;&lt;
/Root 1 0 R

&gt;&gt;
%%EOF</pre>
</div>
   </div>
  </div>
 </div>


 <div class="refsect1 seealso" id="refsect1-function.fdf-save-string-seealso">
  <h3 class="title">Voir aussi</h3>
  <ul class="simplelist">
   <li><span class="function"><a href="function.fdf-open-string.php" class="function" rel="rdfs-seeAlso">fdf_open_string()</a> - Lit un document FDF &agrave; partir d'une cha&icirc;ne de caract&egrave;res</span></li>
   <li><span class="function"><a href="function.fdf-close.php" class="function" rel="rdfs-seeAlso">fdf_close()</a> - Ferme un document FDF</span></li>
   <li><span class="function"><a href="function.fdf-create.php" class="function" rel="rdfs-seeAlso">fdf_create()</a> - Cr&eacute;e un nouveau document FDF</span></li>
   <li><span class="function"><a href="function.fdf-save.php" class="function" rel="rdfs-seeAlso">fdf_save()</a> - Sauvegarde un document FDF</span></li>
  </ul>
 </div>


</div><?php manual_footer($setup); ?>