<?php
include_once $_SERVER['DOCUMENT_ROOT'] . '/include/shared-manual.inc';
$TOC = array();
$TOC_DEPRECATED = array();
$PARENTS = array();
include_once dirname(__FILE__) ."/toc/class.intllistformatter.inc";
$setup = array (
  'home' => 
  array (
    0 => 'index.php',
    1 => 'PHP Manual',
  ),
  'head' => 
  array (
    0 => 'UTF-8',
    1 => 'en',
  ),
  'this' => 
  array (
    0 => 'intllistformatter.construct.php',
    1 => 'IntlListFormatter::__construct',
    2 => 'Creates a new IntlListFormatter instance',
  ),
  'up' => 
  array (
    0 => 'class.intllistformatter.php',
    1 => 'IntlListFormatter',
  ),
  'prev' => 
  array (
    0 => 'class.intllistformatter.php',
    1 => 'IntlListFormatter',
  ),
  'next' => 
  array (
    0 => 'intllistformatter.format.php',
    1 => 'IntlListFormatter::format',
  ),
  'alternatives' => 
  array (
  ),
  'source' => 
  array (
    'lang' => 'en',
    'path' => 'reference/intl/intllistformatter/construct.xml',
  ),
  'history' => 
  array (
  ),
);
$setup["toc"] = $TOC;
$setup["toc_deprecated"] = $TOC_DEPRECATED;
$setup["parents"] = $PARENTS;
manual_setup($setup);

contributors($setup);

?>
<div id="intllistformatter.construct" class="refentry">
 <div class="refnamediv">
  <h1 class="refname">IntlListFormatter::__construct</h1>
  <p class="verinfo">(No version information available, might only be in Git)</p><p class="refpurpose"><span class="refname">IntlListFormatter::__construct</span> &mdash; <span class="dc-title">Creates a new IntlListFormatter instance</span></p>

 </div>

 <div class="refsect1 description" id="refsect1-intllistformatter.construct-description">
  <h3 class="title">Description</h3>
  <div class="constructorsynopsis dc-description">
   <span class="modifier">public</span> <span class="modifier">function</span> <span class="methodname"><strong>IntlListFormatter::__construct</strong></span>(<span class="methodparam"><span class="type"><a href="language.types.string.php" class="type string">string</a></span> <code class="parameter">$locale</code></span>, <span class="methodparam"><span class="type"><a href="language.types.integer.php" class="type int">int</a></span> <code class="parameter">$type</code><span class="initializer"> = <strong><code><a href="class.intllistformatter.php#intllistformatter.constants.type-and">IntlListFormatter::TYPE_AND</a></code></strong></span></span>, <span class="methodparam"><span class="type"><a href="language.types.integer.php" class="type int">int</a></span> <code class="parameter">$width</code><span class="initializer"> = <strong><code><a href="class.intllistformatter.php#intllistformatter.constants.width-wide">IntlListFormatter::WIDTH_WIDE</a></code></strong></span></span>)</div>

  <p class="simpara">
   Creates a new <span class="classname"><a href="class.intllistformatter.php" class="classname">IntlListFormatter</a></span> instance for the given locale.
  </p>
 </div>


 <div class="refsect1 parameters" id="refsect1-intllistformatter.construct-parameters">
  <h3 class="title">Parameters</h3>
  <dl>
   
    <dt><code class="parameter">locale</code></dt>
    <dd>
     <span class="simpara">
      The locale to use for formatting.
     </span>
    </dd>
   
   
    <dt><code class="parameter">type</code></dt>
    <dd>
     <span class="simpara">
      The list type. One of the <strong><code><a href="class.intllistformatter.php#intllistformatter.constants.type-and">IntlListFormatter::TYPE_<span class="replaceable">*</span></a></code></strong> constants:
      <strong><code><a href="class.intllistformatter.php#intllistformatter.constants.type-and">IntlListFormatter::TYPE_AND</a></code></strong>,
      <strong><code><a href="class.intllistformatter.php#intllistformatter.constants.type-or">IntlListFormatter::TYPE_OR</a></code></strong>, or
      <strong><code><a href="class.intllistformatter.php#intllistformatter.constants.type-units">IntlListFormatter::TYPE_UNITS</a></code></strong>.
     </span>
    </dd>
   
   
    <dt><code class="parameter">width</code></dt>
    <dd>
     <span class="simpara">
      The list width. One of the <strong><code><a href="class.intllistformatter.php#intllistformatter.constants.width-wide">IntlListFormatter::WIDTH_<span class="replaceable">*</span></a></code></strong> constants:
      <strong><code><a href="class.intllistformatter.php#intllistformatter.constants.width-wide">IntlListFormatter::WIDTH_WIDE</a></code></strong>,
      <strong><code><a href="class.intllistformatter.php#intllistformatter.constants.width-short">IntlListFormatter::WIDTH_SHORT</a></code></strong>, or
      <strong><code><a href="class.intllistformatter.php#intllistformatter.constants.width-narrow">IntlListFormatter::WIDTH_NARROW</a></code></strong>.
     </span>
    </dd>
   
  </dl>
 </div>


 <div class="refsect1 errors" id="refsect1-intllistformatter.construct-errors">
  <h3 class="title">Errors/Exceptions</h3>
  <p class="simpara">
   Throws an <span class="exceptionname"><a href="class.intlexception.php" class="exceptionname">IntlException</a></span> if the formatter cannot be created
   (e.g. invalid locale or ICU version is below 67).
  </p>
 </div>


 <div class="refsect1 changelog" id="refsect1-intllistformatter.construct-changelog">
  <h3 class="title">Changelog</h3>
  <table class="doctable informaltable">
   
    <thead>
     <tr>
      <th>Version</th>
      <th>Description</th>
     </tr>

    </thead>

    <tbody class="tbody">
     <tr>
      <td>8.5.0</td>
      <td>
       The class was added.
      </td>
     </tr>

    </tbody>
   
  </table>

 </div>


 <div class="refsect1 seealso" id="refsect1-intllistformatter.construct-seealso">
  <h3 class="title">See Also</h3>
  <ul class="simplelist">
   <li><span class="methodname"><a href="intllistformatter.format.php" class="methodname" rel="rdfs-seeAlso">IntlListFormatter::format()</a> - Format a list of items</span></li>
  </ul>
 </div>


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