<?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 => 'zh',
  ),
  'this' => 
  array (
    0 => 'function.enchant-dict-add-to-session.php',
    1 => 'enchant_dict_add_to_session',
    2 => 'Add \'word\' to this spell-checking session',
  ),
  'up' => 
  array (
    0 => 'ref.enchant.php',
    1 => 'Enchant 函数',
  ),
  'prev' => 
  array (
    0 => 'function.enchant-dict-add-to-personal.php',
    1 => 'enchant_dict_add_to_personal',
  ),
  'next' => 
  array (
    0 => 'function.enchant-dict-check.php',
    1 => 'enchant_dict_check',
  ),
  'alternatives' => 
  array (
  ),
  'source' => 
  array (
    'lang' => 'en',
    'path' => 'reference/enchant/functions/enchant-dict-add-to-session.xml',
  ),
  'history' => 
  array (
  ),
);
$setup["toc"] = $TOC;
$setup["toc_deprecated"] = $TOC_DEPRECATED;
$setup["parents"] = $PARENTS;
manual_setup($setup);

contributors($setup);

?>
<div id="function.enchant-dict-add-to-session" class="refentry">
 <div class="refnamediv">
  <h1 class="refname">enchant_dict_add_to_session</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_dict_add_to_session</span> &mdash; <span class="dc-title">Add &#039;word&#039; to this spell-checking session</span></p>

 </div>
 <div class="refsect1 description" id="refsect1-function.enchant-dict-add-to-session-description">
  <h3 class="title">说明</h3>
  <div class="methodsynopsis dc-description">
   <span class="methodname"><strong>enchant_dict_add_to_session</strong></span>(<span class="methodparam"><span class="type"><a href="class.enchantdictionary.php" class="type EnchantDictionary">EnchantDictionary</a></span> <code class="parameter">$dictionary</code></span>, <span class="methodparam"><span class="type"><a href="language.types.string.php" class="type string">string</a></span> <code class="parameter">$word</code></span>): <span class="type"><a href="language.types.void.php" class="type void">void</a></span></div>

  <p class="simpara">
   Add a word to the given dictionary. It will be added only for the
   active spell-checking session.
  </p>

 </div>

 <div class="refsect1 parameters" id="refsect1-function.enchant-dict-add-to-session-parameters">
  <h3 class="title">参数</h3>
  <dl>
   
     <dt><code class="parameter">dictionary</code></dt>
     <dd>
      <p class="para">
       An Enchant dictionary returned by <span class="function"><a href="function.enchant-broker-request-dict.php" class="function">enchant_broker_request_dict()</a></span>
       or <span class="function"><a href="function.enchant-broker-request-pwl-dict.php" class="function">enchant_broker_request_pwl_dict()</a></span>.
      </p>
     </dd>
    
   
    <dt><code class="parameter">word</code></dt>
    <dd>
     <span class="simpara">
      The word to add
     </span>
    </dd>
   
  </dl>
 </div>


 <div class="refsect1 returnvalues" id="refsect1-function.enchant-dict-add-to-session-returnvalues">
  <h3 class="title">返回值</h3>
  <p class="simpara">
   没有返回值。
  </p>
 </div>


 <div class="refsect1 changelog" id="refsect1-function.enchant-dict-add-to-session-changelog">
  <h3 class="title">更新日志</h3>
  <table class="doctable informaltable">
   
    <thead>
     <tr>
      <th>版本</th>
      <th>说明</th>
     </tr>

    </thead>

    <tbody class="tbody">
     <tr>
 <td>8.0.0</td>
 <td>
  <code class="parameter">dictionary</code> expects an <span class="classname"><a href="class.enchantdictionary.php" class="classname">EnchantDictionary</a></span> instance now;
  previoulsy, a <span class="type"><a href="language.types.resource.php" class="type resource">resource</a></span> was expected.
 </td>
</tr>

    </tbody>
   
  </table>

 </div>


 <div class="refsect1 seealso" id="refsect1-function.enchant-dict-add-to-session-seealso">
  <h3 class="title">参见</h3>
  <ul class="simplelist">
   <li><span class="function"><a href="function.enchant-broker-request-dict.php" class="function" rel="rdfs-seeAlso">enchant_broker_request_dict()</a> - Create a new dictionary using a tag</span></li>
  </ul>
 </div>

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