<?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 => 'es',
  ),
  'this' => 
  array (
    0 => 'function.nl-langinfo.php',
    1 => 'nl_langinfo',
    2 => 'Recopila informaci&oacute;n sobre el idioma y la configuraci&oacute;n local',
  ),
  'up' => 
  array (
    0 => 'ref.strings.php',
    1 => 'Funciones de strings',
  ),
  'prev' => 
  array (
    0 => 'function.money-format.php',
    1 => 'money_format',
  ),
  'next' => 
  array (
    0 => 'function.nl2br.php',
    1 => 'nl2br',
  ),
  'alternatives' => 
  array (
  ),
  'source' => 
  array (
    'lang' => 'es',
    '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">Recopila información sobre el idioma y la configuración local</span></p>

 </div>

 <div class="refsect1 description" id="refsect1-function.nl-langinfo-description">
  <h3 class="title">Descripción</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> se utiliza para acceder a
   cada elemento de la configuración local. A diferencia de
   la función <span class="function"><a href="function.localeconv.php" class="function">localeconv()</a></span> que devuelve
   todos los elementos, <span class="function"><strong>nl_langinfo()</strong></span> permite
   seleccionar un elemento específico.
  </p>
 </div>


 <div class="refsect1 parameters" id="refsect1-function.nl-langinfo-parameters">
  <h3 class="title">Parámetros</h3>
  <p class="para">
   <dl>
    
     <dt><code class="parameter">item</code></dt>
     <dd>
      <p class="para">
       <code class="parameter">item</code> puede ser el valor entero de un
       elemento, o el nombre de su constante. A continuación se presenta una lista de los nombres
       de constantes para <code class="parameter">item</code> que pueden
       ser utilizados y su descripción. Algunas constantes pueden
       no estar definidas, o no contener ningún valor para ciertas
       configuraciones locales.
       <table class="doctable table">
        <caption><strong>Constantes <span class="function"><strong>nl_langinfo()</strong></span></strong></caption>
        
         <col />
         <col />
         <thead>
          <tr>
           <th>Constante</th>
           <th>Descripción</th>
          </tr>

         </thead>

         <tbody class="tbody">
          <tr>
           <td colspan="2" style="text-align: center;"><em>Constantes de la categoría <strong><code><a href="string.constants.php#constant.lc-time">LC_TIME</a></code></strong></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>Nombre corto del día de la semana.</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>Nombre del día de la semana (DAY_1 = Domingo).</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>Nombre abreviado del mes del año.</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>Nombre del mes del año.</td>
          </tr>

          <tr>
           <td><strong><code><a href="string.constants.php#constant.am-str">AM_STR</a></code></strong></td>
           <td>String para Ante meridian.</td>
          </tr>

          <tr>
           <td><strong><code><a href="string.constants.php#constant.pm-str">PM_STR</a></code></strong></td>
           <td>String para Post meridian.</td>
          </tr>

          <tr>
           <td><strong><code><a href="string.constants.php#constant.d-t-fmt">D_T_FMT</a></code></strong></td>
           <td>
            String que puede ser utilizado como string de formato para la función
            <span class="function"><a href="function.strftime.php" class="function">strftime()</a></span> para representar la fecha y la hora.
           </td>
          </tr>

          <tr>
           <td><strong><code><a href="string.constants.php#constant.d-fmt">D_FMT</a></code></strong></td>
           <td>
            String que puede ser utilizado como string de formato para la función
            <span class="function"><a href="function.strftime.php" class="function">strftime()</a></span> para representar la fecha.
           </td>
          </tr>

          <tr>
           <td><strong><code><a href="string.constants.php#constant.t-fmt">T_FMT</a></code></strong></td>
           <td>
            String que puede ser utilizado como string de formato para la función
            <span class="function"><a href="function.strftime.php" class="function">strftime()</a></span> para representar la hora.
           </td>
          </tr>

          <tr>
           <td><strong><code><a href="string.constants.php#constant.t-fmt-ampm">T_FMT_AMPM</a></code></strong></td>
           <td>
            String que puede ser utilizado como string de formato
            para la función <span class="function"><a href="function.strftime.php" class="function">strftime()</a></span> para representar
            la hora en formato de 12 horas, con ante/post meridian.
           </td>
          </tr>

          <tr>
           <td><strong><code><a href="string.constants.php#constant.era">ERA</a></code></strong></td>
           <td>Era de sustitución.</td>
          </tr>

          <tr>
           <td><strong><code><a href="string.constants.php#constant.era-year">ERA_YEAR</a></code></strong></td>
           <td>Año en el formato de era de sustitución.</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>Fecha y hora en el formato de era de sustitución
           (string que puede ser utilizado en la función <span class="function"><a href="function.strftime.php" class="function">strftime()</a></span>).</td>
          </tr>

          <tr>
           <td><strong><code><a href="string.constants.php#constant.era-d-fmt">ERA_D_FMT</a></code></strong></td>
           <td>Fecha en el formato de era de sustitución
           (string que puede ser utilizado en la función <span class="function"><a href="function.strftime.php" class="function">strftime()</a></span>).</td>
          </tr>

          <tr>
           <td><strong><code><a href="string.constants.php#constant.era-t-fmt">ERA_T_FMT</a></code></strong></td>
           <td>Hora en el formato de era de sustitución
           (string que puede ser utilizado en la función <span class="function"><a href="function.strftime.php" class="function">strftime()</a></span>).</td>
          </tr>

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

          <tr>
           <td><strong><code><a href="string.constants.php#constant.int-curr-symbol">INT_CURR_SYMBOL</a></code></strong></td>
           <td>Símbolo monetario internacional.</td>
          </tr>

          <tr>
           <td><strong><code><a href="string.constants.php#constant.currency-symbol">CURRENCY_SYMBOL</a></code></strong></td>
           <td>Símbolo monetario local.</td>
          </tr>

          <tr>
           <td><strong><code><a href="string.constants.php#constant.crncystr">CRNCYSTR</a></code></strong></td>
           <td>Mismo valor que <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>Carácter de coma decimal.</td>
          </tr>

          <tr>
           <td><strong><code><a href="string.constants.php#constant.mon-thousands-sep">MON_THOUSANDS_SEP</a></code></strong></td>
           <td>Separador de centenas (grupos de tres letras).</td>
          </tr>

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

          <tr>
           <td><strong><code><a href="string.constants.php#constant.positive-sign">POSITIVE_SIGN</a></code></strong></td>
           <td>Signo para los valores positivos.</td>
          </tr>

          <tr>
           <td><strong><code><a href="string.constants.php#constant.negative-sign">NEGATIVE_SIGN</a></code></strong></td>
           <td>Signo para los valores negativos.</td>
          </tr>

          <tr>
           <td><strong><code><a href="string.constants.php#constant.int-frac-digits">INT_FRAC_DIGITS</a></code></strong></td>
           <td>Dígitos parciales internacionales.</td>
          </tr>

          <tr>
           <td><strong><code><a href="string.constants.php#constant.frac-digits">FRAC_DIGITS</a></code></strong></td>
           <td>Dígitos parciales locales.</td>
          </tr>

          <tr>
           <td><strong><code><a href="string.constants.php#constant.p-cs-precedes">P_CS_PRECEDES</a></code></strong></td>
           <td>Devuelve 1 si <strong><code><a href="string.constants.php#constant.currency-symbol">CURRENCY_SYMBOL</a></code></strong> precede a un valor positivo.</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>Devuelve 1 si un espacio separa <strong><code><a href="string.constants.php#constant.currency-symbol">CURRENCY_SYMBOL</a></code></strong> de un valor positivo.</td>
          </tr>

          <tr>
           <td><strong><code><a href="string.constants.php#constant.n-cs-precedes">N_CS_PRECEDES</a></code></strong></td>
           <td>Devuelve 1 si <strong><code><a href="string.constants.php#constant.currency-symbol">CURRENCY_SYMBOL</a></code></strong> precede a un valor negativo.</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>Devuelve 1 si un espacio separa <strong><code><a href="string.constants.php#constant.currency-symbol">CURRENCY_SYMBOL</a></code></strong> de un valor negativo.</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">
               Devuelve 0 si paréntesis rodean la cantidad y <strong><code><a href="string.constants.php#constant.currency-symbol">CURRENCY_SYMBOL</a></code></strong>.
              </span>
             </li>
             <li class="listitem">
              <span class="simpara">
               Devuelve 1 si la cadena de signos precede a la cantidad y <strong><code><a href="string.constants.php#constant.currency-symbol">CURRENCY_SYMBOL</a></code></strong>.
              </span>
             </li>
             <li class="listitem">
              <span class="simpara">
               Devuelve 2 si la cadena de signos sigue a la cantidad y <strong><code><a href="string.constants.php#constant.currency-symbol">CURRENCY_SYMBOL</a></code></strong>.
              </span>
             </li>
             <li class="listitem">
              <span class="simpara">
               Devuelve 3 si la cadena de signos precede inmediatamente al <strong><code><a href="string.constants.php#constant.currency-symbol">CURRENCY_SYMBOL</a></code></strong>.
              </span>
             </li>
             <li class="listitem">
              <span class="simpara">
               Devuelve 4 si la cadena de signos sigue inmediatamente al <strong><code><a href="string.constants.php#constant.currency-symbol">CURRENCY_SYMBOL</a></code></strong>.
              </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>Constantes de la categoría <strong><code><a href="string.constants.php#constant.lc-numeric">LC_NUMERIC</a></code></strong></em></td>
          </tr>

          <tr>
           <td><strong><code><a href="string.constants.php#constant.decimal-point">DECIMAL_POINT</a></code></strong></td>
           <td>Carácter de coma decimal.</td>
          </tr>

          <tr>
           <td><strong><code><a href="string.constants.php#constant.radixchar">RADIXCHAR</a></code></strong></td>
           <td>Mismo valor que <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>Carácter de separación de centenas (grupo de tres letras).</td>
          </tr>

          <tr>
           <td><strong><code><a href="string.constants.php#constant.thousep">THOUSEP</a></code></strong></td>
           <td>Mismo valor que <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>Constantes de la categoría <strong><code><a href="string.constants.php#constant.lc-messages">LC_MESSAGES</a></code></strong></em></td>
          </tr>

          <tr>
           <td><strong><code><a href="string.constants.php#constant.yesexpr">YESEXPR</a></code></strong></td>
           <td>String de expresión regular para buscar la entrada <code class="literal">&quot;yes&quot;</code>.</td>
          </tr>

          <tr>
           <td><strong><code><a href="string.constants.php#constant.noexpr">NOEXPR</a></code></strong></td>
           <td>String de expresión regular para buscar la entrada <code class="literal">&quot;no&quot;</code>.</td>
          </tr>

          <tr>
           <td><strong><code><a href="string.constants.php#constant.yesstr">YESSTR</a></code></strong></td>
           <td>Visualización del string para <code class="literal">&quot;yes&quot;</code>.</td>
          </tr>

          <tr>
           <td><strong><code><a href="string.constants.php#constant.nostr">NOSTR</a></code></strong></td>
           <td>Visualización del string para <code class="literal">&quot;no&quot;</code>.</td>
          </tr>

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

          <tr>
           <td><strong><code><a href="string.constants.php#constant.codeset">CODESET</a></code></strong></td>
           <td>Devuelve un string de caracteres con el nombre del juego de caracteres.</td>
          </tr>

         </tbody>
        
       </table>

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


 <div class="refsect1 returnvalues" id="refsect1-function.nl-langinfo-returnvalues">
  <h3 class="title">Valores devueltos</h3>
  <p class="para">
   Devuelve el elemento, en forma de <span class="type"><a href="language.types.string.php" class="type string">string</a></span> o <strong><code><a href="reserved.constants.php#constant.false">false</a></code></strong> si
   el argumento <code class="parameter">item</code> no es válido.
  </p>
 </div>


 <div class="refsect1 examples" id="refsect1-function.nl-langinfo-examples">
  <h3 class="title">Ejemplos</h3>
  <p class="para">
   <div class="example" id="example-1">
    <p><strong>Ejemplo #1 Ejemplo con <span class="function"><strong>nl_langinfo()</strong></span></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>Resultado del ejemplo anterior es similar a:</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">Notas</h3>
  <blockquote class="note"><p><strong class="note">Nota</strong>: <span class="simpara">
 Esta función no está implementada en las plataformas Windows.
</span></p></blockquote>
 </div>


 <div class="refsect1 seealso" id="refsect1-function.nl-langinfo-seealso">
  <h3 class="title">Ver también</h3>
  <p class="para">
   <ul class="simplelist">
    <li><span class="function"><a href="function.setlocale.php" class="function" rel="rdfs-seeAlso">setlocale()</a> - Establece la informaci&oacute;n de configuraci&oacute;n local</span></li>
    <li><span class="function"><a href="function.localeconv.php" class="function" rel="rdfs-seeAlso">localeconv()</a> - Lee la configuraci&oacute;n local</span></li>
   </ul>
  </p>
 </div>


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