<?php
include_once $_SERVER['DOCUMENT_ROOT'] . '/include/shared-manual.inc';
$TOC = array();
$TOC_DEPRECATED = array();
$PARENTS = array();
include_once dirname(__FILE__) ."/toc/ref.yaml.inc";
$setup = array (
  'home' => 
  array (
    0 => 'index.php',
    1 => 'PHP Manual',
  ),
  'head' => 
  array (
    0 => 'UTF-8',
    1 => 'es',
  ),
  'this' => 
  array (
    0 => 'function.yaml-emit-file.php',
    1 => 'yaml_emit_file',
    2 => 'Enviar la representaci&oacute;n YAML de un valor a un fichero',
  ),
  'up' => 
  array (
    0 => 'ref.yaml.php',
    1 => 'Funciones de Yaml',
  ),
  'prev' => 
  array (
    0 => 'function.yaml-emit.php',
    1 => 'yaml_emit',
  ),
  'next' => 
  array (
    0 => 'function.yaml-parse.php',
    1 => 'yaml_parse',
  ),
  'alternatives' => 
  array (
  ),
  'source' => 
  array (
    'lang' => 'es',
    'path' => 'reference/yaml/functions/yaml-emit-file.xml',
  ),
  'history' => 
  array (
  ),
);
$setup["toc"] = $TOC;
$setup["toc_deprecated"] = $TOC_DEPRECATED;
$setup["parents"] = $PARENTS;
manual_setup($setup);

contributors($setup);

?>
<div id="function.yaml-emit-file" class="refentry">
 <div class="refnamediv">
  <h1 class="refname">yaml_emit_file</h1>
  <p class="verinfo">(PECL yaml &gt;= 0.5.0)</p><p class="refpurpose"><span class="refname">yaml_emit_file</span> &mdash; <span class="dc-title">Enviar la representación YAML de un valor a un fichero</span></p>

 </div>

 <div class="refsect1 description" id="refsect1-function.yaml-emit-file-description">
  <h3 class="title">Descripción</h3>
  <div class="methodsynopsis dc-description">
   <span class="methodname"><strong>yaml_emit_file</strong></span>(<br>&nbsp;&nbsp;&nbsp;&nbsp;<span class="methodparam"><span class="type"><a href="language.types.string.php" class="type string">string</a></span> <code class="parameter">$filename</code></span>,<br>&nbsp;&nbsp;&nbsp;&nbsp;<span class="methodparam"><span class="type"><a href="language.types.mixed.php" class="type mixed">mixed</a></span> <code class="parameter">$data</code></span>,<br>&nbsp;&nbsp;&nbsp;&nbsp;<span class="methodparam"><span class="type"><a href="language.types.integer.php" class="type int">int</a></span> <code class="parameter">$encoding</code><span class="initializer"> = YAML_ANY_ENCODING</span></span>,<br>&nbsp;&nbsp;&nbsp;&nbsp;<span class="methodparam"><span class="type"><a href="language.types.integer.php" class="type int">int</a></span> <code class="parameter">$linebreak</code><span class="initializer"> = YAML_ANY_BREAK</span></span>,<br>&nbsp;&nbsp;&nbsp;&nbsp;<span class="methodparam"><span class="type"><a href="language.types.array.php" class="type array">array</a></span> <code class="parameter">$callbacks</code><span class="initializer"> = <strong><code><a href="reserved.constants.php#constant.null">null</a></code></strong></span></span><br>): <span class="type"><a href="language.types.boolean.php" class="type bool">bool</a></span></div>

  <p class="para rdfs-comment">
   Genera una representación YAML de <code class="parameter">data</code> proporcionada
   en el <code class="parameter">filename</code>.
  </p>
 </div>


 <div class="refsect1 parameters" id="refsect1-function.yaml-emit-file-parameters">
  <h3 class="title">Parámetros</h3>
  <p class="para">
   <dl>
    
     <dt><code class="parameter">filename</code></dt>
     <dd>
      <p class="para">
       Ruta a el fichero.
      </p>
     </dd>
    
    
     <dt><code class="parameter">data</code></dt>
     <dd>
      <p class="para">
       La <code class="parameter">data</code> se codifica. Puede ser de cualquier tipo excepto
       un <span class="type"><a href="language.types.resource.php" class="type resource">resource</a></span>.
      </p>
     </dd>
    
    
     <dt><code class="parameter">encoding</code></dt>
     <dd>
      <p class="para">
       Salida de codificación de caracteres seleccionando entre
       <strong><code><a href="yaml.constants.php#constant.yaml-any-encoding">YAML_ANY_ENCODING</a></code></strong>,
       <strong><code><a href="yaml.constants.php#constant.yaml-utf8-encoding">YAML_UTF8_ENCODING</a></code></strong>,
       <strong><code><a href="yaml.constants.php#constant.yaml-utf16le-encoding">YAML_UTF16LE_ENCODING</a></code></strong>,
       <strong><code><a href="yaml.constants.php#constant.yaml-utf16be-encoding">YAML_UTF16BE_ENCODING</a></code></strong>.
      </p>
     </dd>
    
    
     <dt><code class="parameter">linebreak</code></dt>
     <dd>
      <p class="para">
       Salida del estilo de salto de línea seleccionando entre
       <strong><code><a href="yaml.constants.php#constant.yaml-any-break">YAML_ANY_BREAK</a></code></strong>,
       <strong><code><a href="yaml.constants.php#constant.yaml-cr-break">YAML_CR_BREAK</a></code></strong>,
       <strong><code><a href="yaml.constants.php#constant.yaml-ln-break">YAML_LN_BREAK</a></code></strong>,
       <strong><code><a href="yaml.constants.php#constant.yaml-crln-break">YAML_CRLN_BREAK</a></code></strong>.
      </p>
     </dd>
    
        
     <dt><code class="parameter">callbacks</code></dt>
     <dd>
      <p class="para">
       Manejadores de contenido para emitir nodos YAML. <span class="type"><a href="language.types.array.php" class="type array">array</a></span>
       asociativo de nombre de clase de asignaciones =&gt; <span class="type"><a href="language.types.callable.php" class="type callable">callable</a></span>. Véase
       <a href="yaml.callbacks.emit.php" class="link">emit callbacks</a> para más
       detalles.
      </p>
     </dd>
    
   </dl>
  </p>
 </div>


 <div class="refsect1 returnvalues" id="refsect1-function.yaml-emit-file-returnvalues">
  <h3 class="title">Valores devueltos</h3>
  <p class="para">
  Devuelve <strong><code><a href="reserved.constants.php#constant.true">true</a></code></strong> en caso de éxito.
  </p>
 </div>


  <div class="refsect1 changelog" id="refsect1-function.yaml-emit-file-changelog">
  <h3 class="title">Historial de cambios</h3>
  <p class="para">
   <table class="doctable informaltable">
    
     <thead>
      <tr>
       <th>Versión</th>
       <th>Descripción</th>
      </tr>

     </thead>

     <tbody class="tbody">
      <tr>
       <td>PECL yaml 1.1.0</td>
       <td>
        El parámetro <code class="parameter">callbacks</code> fue añadido.
       </td>
      </tr>

     </tbody>
    
   </table>

  </p>
 </div>


 <div class="refsect1 seealso" id="refsect1-function.yaml-emit-file-seealso">
  <h3 class="title">Ver también</h3>
  <p class="para">
   <ul class="simplelist">
    <li><span class="function"><a href="function.yaml-emit.php" class="function" rel="rdfs-seeAlso">yaml_emit()</a> - Devuelve la representaci&oacute;n de un valor YAML</span></li>
    <li><span class="function"><a href="function.yaml-parse.php" class="function" rel="rdfs-seeAlso">yaml_parse()</a> - Analiza una secuencia de texto en formato YAML</span></li>
   </ul>
  </p>
 </div>


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