<?php
include_once $_SERVER['DOCUMENT_ROOT'] . '/include/shared-manual.inc';
$TOC = array();
$TOC_DEPRECATED = array();
$PARENTS = array();
include_once dirname(__FILE__) ."/toc/ref.pspell.inc";
$setup = array (
  'home' => 
  array (
    0 => 'index.php',
    1 => 'PHP Manual',
  ),
  'head' => 
  array (
    0 => 'UTF-8',
    1 => 'tr',
  ),
  'this' => 
  array (
    0 => 'function.pspell-new.php',
    1 => 'pspell_new',
    2 => 'Load a new dictionary',
  ),
  'up' => 
  array (
    0 => 'ref.pspell.php',
    1 => 'Pspell İşlevleri',
  ),
  'prev' => 
  array (
    0 => 'function.pspell-config-save-repl.php',
    1 => 'pspell_config_save_repl',
  ),
  'next' => 
  array (
    0 => 'function.pspell-new-config.php',
    1 => 'pspell_new_config',
  ),
  'alternatives' => 
  array (
  ),
  'source' => 
  array (
    'lang' => 'en',
    'path' => 'reference/pspell/functions/pspell-new.xml',
  ),
  'history' => 
  array (
  ),
);
$setup["toc"] = $TOC;
$setup["toc_deprecated"] = $TOC_DEPRECATED;
$setup["parents"] = $PARENTS;
manual_setup($setup);

contributors($setup);

?>
<div id="function.pspell-new" class="refentry">
 <div class="refnamediv">
  <h1 class="refname">pspell_new</h1>
  <p class="verinfo">(PHP 4 &gt;= 4.0.2, PHP 5, PHP 7, PHP 8)</p><p class="refpurpose"><span class="refname">pspell_new</span> &mdash; <span class="dc-title">Load a new dictionary</span></p>

 </div>
 
 <div class="refsect1 description" id="refsect1-function.pspell-new-description">
  <h3 class="title">Açıklama</h3>
  <div class="methodsynopsis dc-description">
   <span class="methodname"><strong>pspell_new</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">$language</code></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">$spelling</code><span class="initializer"> = &quot;&quot;</span></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">$jargon</code><span class="initializer"> = &quot;&quot;</span></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">$encoding</code><span class="initializer"> = &quot;&quot;</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">$mode</code><span class="initializer"> = 0</span></span><br>): <span class="type"><span class="type"><a href="class.pspell-dictionary.php" class="type PSpell\Dictionary">PSpell\Dictionary</a></span>|<span class="type"><a href="language.types.singleton.php" class="type false">false</a></span></span></div>

  <p class="para rdfs-comment">
   <span class="function"><strong>pspell_new()</strong></span> opens up a new dictionary and
   returns an <span class="classname"><a href="class.pspell-dictionary.php" class="classname">PSpell\Dictionary</a></span> instance for use in other pspell
   functions.
  </p>
  <p class="para">
   For more information and examples, check out inline manual pspell
   website:<a href="http://aspell.net/" class="link external">&raquo;&nbsp;http://aspell.net/</a>.
  </p>
 </div>


 <div class="refsect1 parameters" id="refsect1-function.pspell-new-parameters">
  <h3 class="title">Bağımsız Değişkenler</h3>
  <p class="para">
   <dl>
    
     <dt><code class="parameter">language</code></dt>
     <dd>
      <p class="para">
       The language parameter is the language code which consists of the
       two letter ISO 639 language code and an optional two letter ISO
       3166 country code after a dash or underscore.
      </p>
     </dd>
    
    
     <dt><code class="parameter">spelling</code></dt>
     <dd>
      <p class="para">
       The spelling parameter is the requested spelling for languages
       with more than one spelling such as English. Known values are
       &#039;american&#039;, &#039;british&#039;, and &#039;canadian&#039;.
      </p>
     </dd>
    
    
     <dt><code class="parameter">jargon</code></dt>
     <dd>
      <p class="para">
       The jargon parameter contains extra information to distinguish
       two different words lists that have the same language and
       spelling parameters.
      </p>
     </dd>
    
    
     <dt><code class="parameter">encoding</code></dt>
     <dd>
      <p class="para">
       The encoding parameter is the encoding that words are expected to
       be in.  Valid values are &#039;utf-8&#039;, &#039;iso8859-*&#039;, &#039;koi8-r&#039;,
       &#039;viscii&#039;, &#039;cp1252&#039;, &#039;machine unsigned 16&#039;, &#039;machine unsigned
       32&#039;. This parameter is largely untested, so be careful when
       using.
      </p>
     </dd>
    
    
     <dt><code class="parameter">mode</code></dt>
     <dd>
      <p class="para">
       The mode parameter is the mode in which spellchecker will work.
       There are several modes available:
       <ul class="itemizedlist">
        <li class="listitem">
         <span class="simpara">
          <strong><code><a href="pspell.constants.php#constant.pspell-fast">PSPELL_FAST</a></code></strong> - Fast mode (least number of
          suggestions)
         </span>
        </li>
        <li class="listitem">
         <span class="simpara">
          <strong><code><a href="pspell.constants.php#constant.pspell-normal">PSPELL_NORMAL</a></code></strong> - Normal mode (more suggestions)
         </span>
        </li>
        <li class="listitem">
         <span class="simpara">
          <strong><code><a href="pspell.constants.php#constant.pspell-bad-spellers">PSPELL_BAD_SPELLERS</a></code></strong> - Slow mode (a lot of
          suggestions)
         </span>
        </li>
        <li class="listitem">
         <span class="simpara">
          <strong><code><a href="pspell.constants.php#constant.pspell-run-together">PSPELL_RUN_TOGETHER</a></code></strong> - Consider run-together words
          as legal compounds.  That is, &quot;thecat&quot; will be a legal compound,
          although there should be a space between the two words. Changing this
          setting only affects the results returned by
          <span class="function"><a href="function.pspell-check.php" class="function">pspell_check()</a></span>; <span class="function"><a href="function.pspell-suggest.php" class="function">pspell_suggest()</a></span>
          will still return suggestions.
         </span>
        </li>
       </ul>
       Mode is a bitmask constructed from different constants listed above.
       However, <strong><code><a href="pspell.constants.php#constant.pspell-fast">PSPELL_FAST</a></code></strong>,
       <strong><code><a href="pspell.constants.php#constant.pspell-normal">PSPELL_NORMAL</a></code></strong> and
       <strong><code><a href="pspell.constants.php#constant.pspell-bad-spellers">PSPELL_BAD_SPELLERS</a></code></strong> are mutually exclusive, so you
       should select only one of them.
      </p>
     </dd>
    
   </dl>
  </p>
 </div>


 <div class="refsect1 returnvalues" id="refsect1-function.pspell-new-returnvalues">
  <h3 class="title">Dönen Değerler</h3>
  <p class="para">
   Returns an <span class="classname"><a href="class.pspell-dictionary.php" class="classname">PSpell\Dictionary</a></span> instance on success, başarısızlık durumunda <strong><code><a href="reserved.constants.php#constant.false">false</a></code></strong> döner.
  </p>
 </div>


 <div class="refsect1 changelog" id="refsect1-function.pspell-new-changelog">
  <h3 class="title">Sürüm Bilgisi</h3>
  <table class="doctable informaltable">
   
    <thead>
     <tr>
      <th>Sürüm: </th>
      <th>Açıklama</th>
     </tr>

    </thead>

    <tbody class="tbody">
     <tr>
      <td>8.1.0</td>
      <td>
       Returns an <span class="classname"><a href="class.pspell-dictionary.php" class="classname">PSpell\Dictionary</a></span> instance now;
       previously, a <a href="language.types.resource.php" class="link">resource</a> was returned.
      </td>
     </tr>

    </tbody>
   
  </table>

 </div>


 <div class="refsect1 examples" id="refsect1-function.pspell-new-examples">
  <h3 class="title">Örnekler</h3>
  <p class="para">
   <div class="example" id="example-1">
    <p><strong>Örnek 1 <span class="function"><strong>pspell_new()</strong></span></strong></p>
    <div class="example-contents">
<div class="phpcode"><code><span style="color: #000000"><span style="color: #0000BB">&lt;?php<br />$pspell </span><span style="color: #007700">= </span><span style="color: #0000BB">pspell_new</span><span style="color: #007700">(</span><span style="color: #DD0000">"en"</span><span style="color: #007700">, </span><span style="color: #DD0000">""</span><span style="color: #007700">, </span><span style="color: #DD0000">""</span><span style="color: #007700">, </span><span style="color: #DD0000">""</span><span style="color: #007700">,<br />                     (</span><span style="color: #0000BB">PSPELL_FAST</span><span style="color: #007700">|</span><span style="color: #0000BB">PSPELL_RUN_TOGETHER</span><span style="color: #007700">));<br /></span><span style="color: #0000BB">?&gt;</span></span></code></div>
    </div>

   </div>
  </p>
 </div>

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