<?php
include_once $_SERVER['DOCUMENT_ROOT'] . '/include/shared-manual.inc';
$TOC = array();
$TOC_DEPRECATED = array();
$PARENTS = array();
include_once dirname(__FILE__) ."/toc/ref.enchant.inc";
$setup = array (
  'home' => 
  array (
    0 => 'index.php',
    1 => 'PHP Manual',
  ),
  'head' => 
  array (
    0 => 'UTF-8',
    1 => 'es',
  ),
  'this' => 
  array (
    0 => 'function.enchant-broker-dict-exists.php',
    1 => 'enchant_broker_dict_exists',
    2 => 'Verifica si un diccionario existe',
  ),
  'up' => 
  array (
    0 => 'ref.enchant.php',
    1 => 'Funciones de Enchant',
  ),
  'prev' => 
  array (
    0 => 'function.enchant-broker-describe.php',
    1 => 'enchant_broker_describe',
  ),
  'next' => 
  array (
    0 => 'function.enchant-broker-free.php',
    1 => 'enchant_broker_free',
  ),
  'alternatives' => 
  array (
  ),
  'source' => 
  array (
    'lang' => 'es',
    'path' => 'reference/enchant/functions/enchant-broker-dict-exists.xml',
  ),
  'history' => 
  array (
  ),
);
$setup["toc"] = $TOC;
$setup["toc_deprecated"] = $TOC_DEPRECATED;
$setup["parents"] = $PARENTS;
manual_setup($setup);

contributors($setup);

?>
<div id="function.enchant-broker-dict-exists" class="refentry">
 <div class="refnamediv">
  <h1 class="refname">enchant_broker_dict_exists</h1>
  <p class="verinfo">(PHP 5 &gt;= 5.3.0, PHP 7, PHP 8, PECL enchant &gt;= 0.1.0 )</p><p class="refpurpose"><span class="refname">enchant_broker_dict_exists</span> &mdash; <span class="dc-title">Verifica si un diccionario existe</span></p>

 </div>
 <div class="refsect1 description" id="refsect1-function.enchant-broker-dict-exists-description">
  <h3 class="title">Descripción</h3>
  <div class="methodsynopsis dc-description">
   <span class="methodname"><strong>enchant_broker_dict_exists</strong></span>(<span class="methodparam"><span class="type"><a href="class.enchantbroker.php" class="type EnchantBroker">EnchantBroker</a></span> <code class="parameter">$broker</code></span>, <span class="methodparam"><span class="type"><a href="language.types.string.php" class="type string">string</a></span> <code class="parameter">$tag</code></span>): <span class="type"><a href="language.types.boolean.php" class="type bool">bool</a></span></div>

  <p class="simpara">
   Verifica si un diccionario existe.
  </p>
 </div>

 <div class="refsect1 parameters" id="refsect1-function.enchant-broker-dict-exists-parameters">
  <h3 class="title">Parámetros</h3>
  <dl>
   
     <dt><code class="parameter">broker</code></dt>
     <dd>
      <p class="para">
       Un broker Enchant devuelto por <span class="function"><a href="function.enchant-broker-init.php" class="function">enchant_broker_init()</a></span>.
      </p>
     </dd>
    
   
    <dt><code class="parameter">tag</code></dt>
    <dd>
     <span class="simpara">
      lenguaje, en un formato como us_US, ch_DE, etc.
     </span>
    </dd>
   
  </dl>
 </div>


 <div class="refsect1 returnvalues" id="refsect1-function.enchant-broker-dict-exists-returnvalues">
  <h3 class="title">Valores devueltos</h3>
  <p class="simpara">
   Devuelve <strong><code><a href="reserved.constants.php#constant.true">true</a></code></strong> si el lenguaje existe, <strong><code><a href="reserved.constants.php#constant.false">false</a></code></strong> en caso contrario.
  </p>
 </div>


 <div class="refsect1 changelog" id="refsect1-function.enchant-broker-dict-exists-changelog">
  <h3 class="title">Historial de cambios</h3>
  <table class="doctable informaltable">
   
    <thead>
     <tr>
      <th>Versión</th>
      <th>Descripción</th>
     </tr>

    </thead>

    <tbody class="tbody">
     <tr>
 <td>8.0.0</td>
 <td>
  <code class="parameter">broker</code> ahora espera una instancia de <span class="classname"><a href="class.enchantbroker.php" class="classname">EnchantBroker</a></span>;
  anteriormente, se esperaba un <span class="type"><a href="language.types.resource.php" class="type resource">resource</a></span>.
 </td>
</tr>

    </tbody>
   
  </table>

 </div>


 <div class="refsect1 examples" id="refsect1-function.enchant-broker-dict-exists-examples">
  <h3 class="title">Ejemplos</h3>
  <div class="example" id="example-1">
   <p><strong>Ejemplo #1 Ejemplo con <span class="function"><strong>enchant_broker_dict_exists()</strong></span></strong></p>
   <div class="example-contents">
<div class="phpcode"><code><span style="color: #000000"><span style="color: #0000BB">&lt;?php<br />$tag </span><span style="color: #007700">= </span><span style="color: #DD0000">'en_US'</span><span style="color: #007700">;<br /></span><span style="color: #0000BB">$r </span><span style="color: #007700">= </span><span style="color: #0000BB">enchant_broker_init</span><span style="color: #007700">();<br />if (</span><span style="color: #0000BB">enchant_broker_dict_exists</span><span style="color: #007700">(</span><span style="color: #0000BB">$r</span><span style="color: #007700">,</span><span style="color: #0000BB">$tag</span><span style="color: #007700">)) {<br />    echo </span><span style="color: #0000BB">$tag </span><span style="color: #007700">. </span><span style="color: #DD0000">" dictionary found.\n"</span><span style="color: #007700">;<br />}<br /></span><span style="color: #0000BB">?&gt;</span></span></code></div>
   </div>

  </div>
 </div>


 <div class="refsect1 seealso" id="refsect1-function.enchant-broker-dict-exists-seealso">
  <h3 class="title">Ver también</h3>
  <ul class="simplelist">
   <li><span class="function"><a href="function.enchant-broker-describe.php" class="function" rel="rdfs-seeAlso">enchant_broker_describe()</a> - Enumera los proveedores Enchant</span></li>
  </ul>
 </div>

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