<?php
include_once $_SERVER['DOCUMENT_ROOT'] . '/include/shared-manual.inc';
$TOC = array();
$TOC_DEPRECATED = array();
$PARENTS = array();
include_once dirname(__FILE__) ."/toc/ref.strings.inc";
$setup = array (
  'home' => 
  array (
    0 => 'index.php',
    1 => 'PHP Manual',
  ),
  'head' => 
  array (
    0 => 'UTF-8',
    1 => 'de',
  ),
  'this' => 
  array (
    0 => 'function.nl-langinfo.php',
    1 => 'nl_langinfo',
    2 => 'Query-Language und Locale-Information',
  ),
  'up' => 
  array (
    0 => 'ref.strings.php',
    1 => 'String-Funktionen',
  ),
  'prev' => 
  array (
    0 => 'function.money-format.php',
    1 => 'money_format',
  ),
  'next' => 
  array (
    0 => 'function.nl2br.php',
    1 => 'nl2br',
  ),
  'alternatives' => 
  array (
  ),
  'source' => 
  array (
    'lang' => 'de',
    'path' => 'reference/strings/functions/nl-langinfo.xml',
  ),
  'history' => 
  array (
  ),
);
$setup["toc"] = $TOC;
$setup["toc_deprecated"] = $TOC_DEPRECATED;
$setup["parents"] = $PARENTS;
manual_setup($setup);

contributors($setup);

?>
<div id="function.nl-langinfo" class="refentry">
 <div class="refnamediv">
  <h1 class="refname">nl_langinfo</h1>
  <p class="verinfo">(PHP 4 &gt;= 4.1.0, PHP 5, PHP 7, PHP 8)</p><p class="refpurpose"><span class="refname">nl_langinfo</span> &mdash; <span class="dc-title">Query-Language und Locale-Information</span></p>

 </div>

 <div class="refsect1 description" id="refsect1-function.nl-langinfo-description">
  <h3 class="title">Beschreibung</h3>
  <div class="methodsynopsis dc-description">
   <span class="methodname"><strong>nl_langinfo</strong></span>(<span class="methodparam"><span class="type"><a href="language.types.integer.php" class="type int">int</a></span> <code class="parameter">$item</code></span>): <span class="type"><span class="type"><a href="language.types.string.php" class="type string">string</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>nl_langinfo()</strong></span> wird verwendet, um auf ein bestimmtes
   Element der Locale-Angaben zuzugreifen. Im Gegensatz zur Funktion
   <span class="function"><a href="function.localeconv.php" class="function">localeconv()</a></span>, die alle Elemente zurückgibt, ermöglicht
   <span class="function"><strong>nl_langinfo()</strong></span>, ein bestimmtes Element auszuwählen.
  </p>
 </div>


 <div class="refsect1 parameters" id="refsect1-function.nl-langinfo-parameters">
  <h3 class="title">Parameter-Liste</h3>
  <p class="para">
   <dl>
    
     <dt><code class="parameter">item</code></dt>
     <dd>
      <p class="para">
       <code class="parameter">item</code> kann der Integerwert oder der Konstantenname
       des Elements sein. Folgend eine Liste der verwendbaren Konstantennamen für
       den Parameter <code class="parameter">item</code> sowie eine kurze Beschreibung.
       Für bestimmte Locales sind einige dieser Konstanten möglicherweise nicht
       definiert oder haben keinen Wert.
       <table class="doctable table">
        <caption><strong>nl_langinfo-Konstanten</strong></caption>
        
         <col />
         <col />
         <thead>
          <tr>
           <th>Konstante</th>
           <th>Beschreibung</th>
          </tr>

         </thead>

         <tbody class="tbody">
          <tr>
           <td colspan="2" style="text-align: center;"><em><strong><code><a href="string.constants.php#constant.lc-time">LC_TIME</a></code></strong>-Konstanten</em></td>
          </tr>

          <tr>
           <td><strong><code><a href="string.constants.php#constant.abday-1">ABDAY_<span class="replaceable">(1-7)</span></a></code></strong></td>
           <td>Abgekürzter Name des n-ten Tages einer Woche.</td>
          </tr>

          <tr>
           <td><strong><code><a href="string.constants.php#constant.day-1">DAY_<span class="replaceable">(1-7)</span></a></code></strong></td>
           <td>Name des n-ten Tages einer Woche (DAY_1 = Sonntag).</td>
          </tr>

          <tr>
           <td><strong><code><a href="string.constants.php#constant.abmon-1">ABMON_<span class="replaceable">(1-12)</span></a></code></strong></td>
           <td>Abgekürzter Name des n-ten Monats eines Jahres.</td>
          </tr>

          <tr>
           <td><strong><code><a href="string.constants.php#constant.mon-1">MON_<span class="replaceable">(1-12)</span></a></code></strong></td>
           <td>Name des n-ten Monats eines Jahres.</td>
          </tr>

          <tr>
           <td><strong><code><a href="string.constants.php#constant.am-str">AM_STR</a></code></strong></td>
           <td>String für Ante meridian (vor dem Mittag).</td>
          </tr>

          <tr>
           <td><strong><code><a href="string.constants.php#constant.pm-str">PM_STR</a></code></strong></td>
           <td>String für Post meridian (nach dem Mittag).</td>
          </tr>

          <tr>
           <td><strong><code><a href="string.constants.php#constant.d-t-fmt">D_T_FMT</a></code></strong></td>
           <td>
            String, der als Formatierung für <span class="function"><a href="function.strftime.php" class="function">strftime()</a></span>
            verwendet werden kann, um Zeit und Datum darzustellen.
           </td>
          </tr>

          <tr>
           <td><strong><code><a href="string.constants.php#constant.d-fmt">D_FMT</a></code></strong></td>
           <td>
            String, der als Formatierung für <span class="function"><a href="function.strftime.php" class="function">strftime()</a></span>
            verwendet werden kann, um das Datum darzustellen.
           </td>
          </tr>

          <tr>
           <td><strong><code><a href="string.constants.php#constant.t-fmt">T_FMT</a></code></strong></td>
           <td>
            String, der als Formatierung für <span class="function"><a href="function.strftime.php" class="function">strftime()</a></span>
            verwendet werden kann, um die Zeit darzustellen.
           </td>
          </tr>

          <tr>
           <td><strong><code><a href="string.constants.php#constant.t-fmt-ampm">T_FMT_AMPM</a></code></strong></td>
           <td>
            String, der als Formatierung für <span class="function"><a href="function.strftime.php" class="function">strftime()</a></span>
            verwendet werden kann, um die Zeit im 12-Stunden-Format mit
            AM/PM-Angabe darzustellen.
           </td>
          </tr>

          <tr>
           <td><strong><code><a href="string.constants.php#constant.era">ERA</a></code></strong></td>
           <td>Alternative Zeitrechnung.</td>
          </tr>

          <tr>
           <td><strong><code><a href="string.constants.php#constant.era-year">ERA_YEAR</a></code></strong></td>
           <td>Jahresangabe für eine alternative Zeitrechnung.</td>
          </tr>

          <tr>
           <td><strong><code><a href="string.constants.php#constant.era-d-t-fmt">ERA_D_T_FMT</a></code></strong></td>
           <td>
            Datums- und Zeitangabe für eine alternative Zeitrechnung (der
            String kann in <span class="function"><a href="function.strftime.php" class="function">strftime()</a></span> verwendet werden).
           </td>
          </tr>

          <tr>
           <td><strong><code><a href="string.constants.php#constant.era-d-fmt">ERA_D_FMT</a></code></strong></td>
           <td>
            Datumsangabe für eine alternative Zeitrechnung (der String kann in
            <span class="function"><a href="function.strftime.php" class="function">strftime()</a></span> verwendet werden).
           </td>
          </tr>

          <tr>
           <td><strong><code><a href="string.constants.php#constant.era-t-fmt">ERA_T_FMT</a></code></strong></td>
           <td>
            Zeitangabe für eine alternative Zeitrechnung (der String kann in
            <span class="function"><a href="function.strftime.php" class="function">strftime()</a></span> verwendet werden).
           </td>
          </tr>

          <tr>
           <td colspan="2" style="text-align: center;"><em><strong><code><a href="string.constants.php#constant.lc-monetary">LC_MONETARY</a></code></strong>-Konstanten</em></td>
          </tr>

          <tr>
           <td><strong><code><a href="string.constants.php#constant.int-curr-symbol">INT_CURR_SYMBOL</a></code></strong></td>
           <td>Internationales Währungssymbol.</td>
          </tr>

          <tr>
           <td><strong><code><a href="string.constants.php#constant.currency-symbol">CURRENCY_SYMBOL</a></code></strong></td>
           <td>Lokales Währungssymbol.</td>
          </tr>

          <tr>
           <td><strong><code><a href="string.constants.php#constant.crncystr">CRNCYSTR</a></code></strong></td>
           <td>Gleicher Wert wie <strong><code><a href="string.constants.php#constant.currency-symbol">CURRENCY_SYMBOL</a></code></strong>.</td>
          </tr>

          <tr>
           <td><strong><code><a href="string.constants.php#constant.mon-decimal-point">MON_DECIMAL_POINT</a></code></strong></td>
           <td>Dezimal-Trennzeichen.</td>
          </tr>

          <tr>
           <td><strong><code><a href="string.constants.php#constant.mon-thousands-sep">MON_THOUSANDS_SEP</a></code></strong></td>
           <td>Tausender-Trennzeichen (Gruppierung von drei Ziffern).</td>
          </tr>

          <tr>
           <td><strong><code><a href="string.constants.php#constant.mon-grouping">MON_GROUPING</a></code></strong></td>
           <td>Wie das <code class="literal">&quot;grouping&quot;</code>-Element.</td>
          </tr>

          <tr>
           <td><strong><code><a href="string.constants.php#constant.positive-sign">POSITIVE_SIGN</a></code></strong></td>
           <td>Vorzeichen für positive Werte.</td>
          </tr>

          <tr>
           <td><strong><code><a href="string.constants.php#constant.negative-sign">NEGATIVE_SIGN</a></code></strong></td>
           <td>Vorzeichen für negative Werte.</td>
          </tr>

          <tr>
           <td><strong><code><a href="string.constants.php#constant.int-frac-digits">INT_FRAC_DIGITS</a></code></strong></td>
           <td>Internationale Anzahl der Ziffern nach dem Dezimalzeichen.</td>           </tr>

          <tr>
           <td><strong><code><a href="string.constants.php#constant.frac-digits">FRAC_DIGITS</a></code></strong></td>
           <td>Lokale Anzahl der Ziffern nach dem Dezimalzeichen.</td>
          </tr>

          <tr>
           <td><strong><code><a href="string.constants.php#constant.p-cs-precedes">P_CS_PRECEDES</a></code></strong></td>
           <td>
            Gibt 1 zurück, wenn <strong><code><a href="string.constants.php#constant.currency-symbol">CURRENCY_SYMBOL</a></code></strong> einem
            positiven Wert vorausgeht.
           </td>
          </tr>

          <tr>
           <td><strong><code><a href="string.constants.php#constant.p-sep-by-space">P_SEP_BY_SPACE</a></code></strong></td>
           <td>
            Gibt 1 zurück, wenn ein Leerzeichen
            <strong><code><a href="string.constants.php#constant.currency-symbol">CURRENCY_SYMBOL</a></code></strong> von einem positiven Wert
            trennt.
           </td>
          </tr>

          <tr>
           <td><strong><code><a href="string.constants.php#constant.n-cs-precedes">N_CS_PRECEDES</a></code></strong></td>
           <td>
            Gibt 1 zurück, wenn <strong><code><a href="string.constants.php#constant.currency-symbol">CURRENCY_SYMBOL</a></code></strong> einem
            negativen Wert vorausgeht.
           </td>
          </tr>

          <tr>
           <td><strong><code><a href="string.constants.php#constant.n-sep-by-space">N_SEP_BY_SPACE</a></code></strong></td>
           <td>
            Gibt 1 zurück, wenn ein Leerzeichen
            <strong><code><a href="string.constants.php#constant.currency-symbol">CURRENCY_SYMBOL</a></code></strong> von einem negativen Wert
            trennt.
           </td>
          </tr>

          <tr>
           <td><strong><code><a href="string.constants.php#constant.p-sign-posn">P_SIGN_POSN</a></code></strong></td>
           <td rowspan="2" style="vertical-align: middle;">
            <ul class="itemizedlist">
             <li class="listitem">
              <span class="simpara">
               Gibt 0 zurück, wenn um Geldmenge und
               <strong><code><a href="string.constants.php#constant.currency-symbol">CURRENCY_SYMBOL</a></code></strong> Klammern gesetzt sind.
              </span>
             </li>
             <li class="listitem">
              <span class="simpara">
               Gibt 1 zurück, wenn das Vorzeichen der Geldmenge und dem
               <strong><code><a href="string.constants.php#constant.currency-symbol">CURRENCY_SYMBOL</a></code></strong> vorausgeht.
              </span>
             </li>
             <li class="listitem">
              <span class="simpara">
               Gibt 2 zurück, wenn das Vorzeichen der Geldmenge und
               <strong><code><a href="string.constants.php#constant.currency-symbol">CURRENCY_SYMBOL</a></code></strong> nachfolgt.
              </span>
             </li>
             <li class="listitem">
              <span class="simpara">
               Gibt 3 zurück, wenn das Vorzeichen direkt vor dem
               <strong><code><a href="string.constants.php#constant.currency-symbol">CURRENCY_SYMBOL</a></code></strong> steht.
              </span>
             </li>
             <li class="listitem">
              <span class="simpara">
               Gibt 4 zurück, wenn das Vorzeichen direkt hinter dem
               <strong><code><a href="string.constants.php#constant.currency-symbol">CURRENCY_SYMBOL</a></code></strong> steht.
              </span>
             </li>
            </ul>
           </td>
          </tr>

          <tr>
           <td><strong><code><a href="string.constants.php#constant.n-sign-posn">N_SIGN_POSN</a></code></strong></td>
          </tr>

          <tr>
           <td colspan="2" style="text-align: center;"><em><strong><code><a href="string.constants.php#constant.lc-numeric">LC_NUMERIC</a></code></strong>-Konstanten</em></td>
          </tr>

          <tr>
           <td><strong><code><a href="string.constants.php#constant.decimal-point">DECIMAL_POINT</a></code></strong></td>
           <td>Dezimal-Trennzeichen.</td>
          </tr>

          <tr>
           <td><strong><code><a href="string.constants.php#constant.radixchar">RADIXCHAR</a></code></strong></td>
           <td>Der gleiche Wert wie <strong><code><a href="string.constants.php#constant.decimal-point">DECIMAL_POINT</a></code></strong>.</td>
          </tr>

          <tr>
           <td><strong><code><a href="string.constants.php#constant.thousands-sep">THOUSANDS_SEP</a></code></strong></td>
           <td>Tausender-Trennzeichen (Gruppen von drei Ziffern).</td>
          </tr>

          <tr>
           <td><strong><code><a href="string.constants.php#constant.thousep">THOUSEP</a></code></strong></td>
           <td>Der gleiche Wert wie <strong><code><a href="string.constants.php#constant.thousands-sep">THOUSANDS_SEP</a></code></strong>.</td>
          </tr>

          <tr>
           <td><strong><code><a href="string.constants.php#constant.grouping">GROUPING</a></code></strong></td>
           <td class="empty">&nbsp;</td>
          </tr>

          <tr>
           <td colspan="2" style="text-align: center;"><em><strong><code><a href="string.constants.php#constant.lc-messages">LC_MESSAGES</a></code></strong>-Konstanten</em></td>
          </tr>

          <tr>
           <td><strong><code><a href="string.constants.php#constant.yesexpr">YESEXPR</a></code></strong></td>
           <td>Regex-String für eine <code class="literal">&quot;yes&quot;</code>-Eingabe.</td>
          </tr>

          <tr>
           <td><strong><code><a href="string.constants.php#constant.noexpr">NOEXPR</a></code></strong></td>
           <td>Regex-String für eine <code class="literal">&quot;no&quot;</code>-Eingabe.</td>
          </tr>

          <tr>
           <td><strong><code><a href="string.constants.php#constant.yesstr">YESSTR</a></code></strong></td>
           <td>Gibt den String für <code class="literal">&quot;yes&quot;</code> aus.</td>
          </tr>

          <tr>
           <td><strong><code><a href="string.constants.php#constant.nostr">NOSTR</a></code></strong></td>
           <td>Gibt den String für <code class="literal">&quot;no&quot;</code> aus.</td>
          </tr>

          <tr>
           <td colspan="2" style="text-align: center;"><em><strong><code><a href="string.constants.php#constant.lc-ctype">LC_CTYPE</a></code></strong>-Konstanten</em></td>
          </tr>

          <tr>
           <td><strong><code><a href="string.constants.php#constant.codeset">CODESET</a></code></strong></td>
           <td>Gibt einen String mit der Bezeichnung des Character-Encodings zurück.</td>
          </tr>

         </tbody>
        
       </table>

      </p>
     </dd>
    
   </dl>
  </p>
 </div>


 <div class="refsect1 returnvalues" id="refsect1-function.nl-langinfo-returnvalues">
  <h3 class="title">Rückgabewerte</h3>
  <p class="para">
   Gibt das Element als Zeichenkette zurück. Enthält <code class="parameter">item</code>
   keinen gültigen Wert, wird <strong><code><a href="reserved.constants.php#constant.false">false</a></code></strong> zurückgegeben.
  </p>
 </div>


 <div class="refsect1 examples" id="refsect1-function.nl-langinfo-examples">
  <h3 class="title">Beispiele</h3>
  <p class="para">
   <div class="example" id="example-1">
    <p><strong>Beispiel #1 <span class="function"><strong>nl_langinfo()</strong></span>-Beispiel</strong></p>
    <div class="example-contents">
<div class="annotation-interactive phpcode"><code><span style="color: #000000"><span style="color: #0000BB">&lt;?php<br /><br />var_dump</span><span style="color: #007700">(</span><span style="color: #0000BB">nl_langinfo</span><span style="color: #007700">(</span><span style="color: #0000BB">CODESET</span><span style="color: #007700">));<br /></span><span style="color: #0000BB">var_dump</span><span style="color: #007700">(</span><span style="color: #0000BB">nl_langinfo</span><span style="color: #007700">(</span><span style="color: #0000BB">YESEXPR</span><span style="color: #007700">));<br /></span><span style="color: #0000BB">?&gt;</span></span></code></div>
    </div>

    <div class="example-contents"><p>Das oben gezeigte Beispiel erzeugt
eine ähnliche Ausgabe wie:</p></div>
    <div class="example-contents screen">
<div class="annotation-interactive examplescode"><pre class="examplescode">string(14) &quot;ANSI_X3.4-1968&quot;
string(5) &quot;^[yY]&quot;</pre>
</div>
    </div>
   </div>
  </p>
 </div>


 <div class="refsect1 notes" id="refsect1-function.nl-langinfo-notes">
  <h3 class="title">Anmerkungen</h3>
  <blockquote class="note"><p><strong class="note">Hinweis</strong>: <span class="simpara">Diese Funktion ist auf
Windows-Plattformen nicht verfügbar.</span></p></blockquote>
 </div>


 <div class="refsect1 seealso" id="refsect1-function.nl-langinfo-seealso">
  <h3 class="title">Siehe auch</h3>
  <p class="para">
   <ul class="simplelist">
    <li><span class="function"><a href="function.setlocale.php" class="function" rel="rdfs-seeAlso">setlocale()</a> - Legt regionale (locale) Einstellungen fest</span></li>
    <li><span class="function"><a href="function.localeconv.php" class="function" rel="rdfs-seeAlso">localeconv()</a> - Ermittelt die Formatierungsinformationen f&uuml;r Zahlen</span></li>
   </ul>
  </p>
 </div>


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