<?php
include_once $_SERVER['DOCUMENT_ROOT'] . '/include/shared-manual.inc';
$TOC = array();
$TOC_DEPRECATED = array();
$PARENTS = array();
include_once dirname(__FILE__) ."/toc/book.array.inc";
$setup = array (
  'home' => 
  array (
    0 => 'index.php',
    1 => 'PHP Manual',
  ),
  'head' => 
  array (
    0 => 'UTF-8',
    1 => 'pt_BR',
  ),
  'this' => 
  array (
    0 => 'array.constants.php',
    1 => 'Constantes predefinidas',
    2 => 'Constantes predefinidas',
  ),
  'up' => 
  array (
    0 => 'book.array.php',
    1 => 'Arrays',
  ),
  'prev' => 
  array (
    0 => 'book.array.php',
    1 => 'Arrays',
  ),
  'next' => 
  array (
    0 => 'array.sorting.php',
    1 => 'Ordenando Arrays',
  ),
  'alternatives' => 
  array (
  ),
  'source' => 
  array (
    'lang' => 'pt_BR',
    'path' => 'reference/array/constants.xml',
  ),
  'history' => 
  array (
  ),
);
$setup["toc"] = $TOC;
$setup["toc_deprecated"] = $TOC_DEPRECATED;
$setup["parents"] = $PARENTS;
manual_setup($setup);

contributors($setup);

?>
<div id="array.constants" class="appendix">
 <h1 class="title">Constantes predefinidas</h1>

 <p class="simpara">
As constantes abaixo estão sempre disponíveis como parte do núcleo do PHP.
</p>
 <p class="para">
 <dl>
  
   <dt id="constant.case-lower">
    <strong><code><a href="array.constants.php#constant.case-lower">CASE_LOWER</a></code></strong>
    (<span class="type"><a href="language.types.integer.php" class="type int">int</a></span>)
   </dt>
   <dd>
    <span class="simpara">
     <strong><code><a href="array.constants.php#constant.case-lower">CASE_LOWER</a></code></strong> é utilizada com a função
     <span class="function"><a href="function.array-change-key-case.php" class="function">array_change_key_case()</a></span> para converter
     chaves de arrays para minúsculas. É o valor padrão utilizado na função
     <span class="function"><a href="function.array-change-key-case.php" class="function">array_change_key_case()</a></span>. A partir do PHP 8.2.0, somente caracteres ASCII
     são convertidos.
    </span>
   </dd>
  
  
   <dt id="constant.case-upper">
    <strong><code><a href="array.constants.php#constant.case-upper">CASE_UPPER</a></code></strong>
    (<span class="type"><a href="language.types.integer.php" class="type int">int</a></span>)
   </dt>
   <dd>
    <span class="simpara">
     <strong><code><a href="array.constants.php#constant.case-upper">CASE_UPPER</a></code></strong> é utilizada com a função
     <span class="function"><a href="function.array-change-key-case.php" class="function">array_change_key_case()</a></span> para converter
     chaves de arrays para maiúsculas. A partir do PHP 8.2.0, somente caracteres ASCII
     são convertidos.
    </span>
   </dd>
  
 </dl>
 </p>

 <p class="para">Opções de ordenação:
 <dl>
  
   <dt id="constant.sort-asc">
    <strong><code><a href="array.constants.php#constant.sort-asc">SORT_ASC</a></code></strong>
    (<span class="type"><a href="language.types.integer.php" class="type int">int</a></span>)
   </dt>
   <dd>
    <span class="simpara">
     <strong><code><a href="array.constants.php#constant.sort-asc">SORT_ASC</a></code></strong> é utilizada com
     <span class="function"><a href="function.array-multisort.php" class="function">array_multisort()</a></span> para classificar em ordem crescente.
    </span>
   </dd>
  
  
   <dt id="constant.sort-desc">
    <strong><code><a href="array.constants.php#constant.sort-desc">SORT_DESC</a></code></strong>
    (<span class="type"><a href="language.types.integer.php" class="type int">int</a></span>)
   </dt>
   <dd>
    <span class="simpara">
     <strong><code><a href="array.constants.php#constant.sort-desc">SORT_DESC</a></code></strong> é utilizada com
     <span class="function"><a href="function.array-multisort.php" class="function">array_multisort()</a></span> para classificar em ordem decrescente.
    </span>
   </dd>
  
 </dl>
 </p>

 <p class="para">Opções de tipos de ordenação: utilizadas por várias funções de ordenação
 <dl>
  
   <dt id="constant.sort-regular">
    <strong><code><a href="array.constants.php#constant.sort-regular">SORT_REGULAR</a></code></strong>
    (<span class="type"><a href="language.types.integer.php" class="type int">int</a></span>)
   </dt>
   <dd>
    <span class="simpara">
     <strong><code><a href="array.constants.php#constant.sort-regular">SORT_REGULAR</a></code></strong> é utilizada para comparar itens normalmente.
    </span>
   </dd>
  
  
   <dt id="constant.sort-numeric">
    <strong><code><a href="array.constants.php#constant.sort-numeric">SORT_NUMERIC</a></code></strong>
    (<span class="type"><a href="language.types.integer.php" class="type int">int</a></span>)
   </dt>
   <dd>
    <span class="simpara">
     <strong><code><a href="array.constants.php#constant.sort-numeric">SORT_NUMERIC</a></code></strong> é utilizada para comparar itens numericamente.
    </span>
   </dd>
  
  
   <dt id="constant.sort-string">
    <strong><code><a href="array.constants.php#constant.sort-string">SORT_STRING</a></code></strong>
    (<span class="type"><a href="language.types.integer.php" class="type int">int</a></span>)
   </dt>
   <dd>
    <span class="simpara">
    <strong><code><a href="array.constants.php#constant.sort-string">SORT_STRING</a></code></strong> é utilizada para comparar itens como strings.
    </span>
   </dd>
  
  
   <dt id="constant.sort-locale-string">
    <strong><code><a href="array.constants.php#constant.sort-locale-string">SORT_LOCALE_STRING</a></code></strong>
    (<span class="type"><a href="language.types.integer.php" class="type int">int</a></span>)
   </dt>
   <dd>
    <span class="simpara">
    <strong><code><a href="array.constants.php#constant.sort-locale-string">SORT_LOCALE_STRING</a></code></strong> é utilizada para comparar itens como
    strings, baseado na localidade atual.
    </span>
   </dd>
  
  
   <dt id="constant.sort-natural">
    <strong><code><a href="array.constants.php#constant.sort-natural">SORT_NATURAL</a></code></strong>
    (<span class="type"><a href="language.types.integer.php" class="type int">int</a></span>)
   </dt>
   <dd>
    <span class="simpara">
    <strong><code><a href="array.constants.php#constant.sort-natural">SORT_NATURAL</a></code></strong> é utilizada para comparar itens como
    strings utilizando a &quot;ordenação natural&quot;, como a função <span class="function"><a href="function.natsort.php" class="function">natsort()</a></span>.
    </span>
   </dd>
  
  
   <dt id="constant.sort-flag-case">
    <strong><code><a href="array.constants.php#constant.sort-flag-case">SORT_FLAG_CASE</a></code></strong>
    (<span class="type"><a href="language.types.integer.php" class="type int">int</a></span>)
   </dt>
   <dd>
    <span class="simpara">
     <strong><code><a href="array.constants.php#constant.sort-flag-case">SORT_FLAG_CASE</a></code></strong> pode ser combinada (operador OR binário) com
     <strong><code><a href="array.constants.php#constant.sort-string">SORT_STRING</a></code></strong> ou <strong><code><a href="array.constants.php#constant.sort-natural">SORT_NATURAL</a></code></strong> para
     ordenar strings de forma insensível a miúsculas/minúsculas. A partir do PHP 8.2.0, somente a redução de todas as letras ASCII a maiúsculas ou minúsculas
     será feita.
    </span>
   </dd>
  
 </dl>
 </p>

 <p class="para">Opções de filtro:
 <dl>
  
   <dt id="constant.array-filter-use-key">
    <strong><code><a href="array.constants.php#constant.array-filter-use-key">ARRAY_FILTER_USE_KEY</a></code></strong>
    (<span class="type"><a href="language.types.integer.php" class="type int">int</a></span>)
   </dt>
   <dd>
    <span class="simpara">
     <strong><code><a href="array.constants.php#constant.array-filter-use-key">ARRAY_FILTER_USE_KEY</a></code></strong> é utilizada com a função
     <span class="function"><a href="function.array-filter.php" class="function">array_filter()</a></span> para passar cada chave como primeiro argumento de uma função de retorno informada.
    </span>
   </dd>
  
  
   <dt id="constant.array-filter-use-both">
    <strong><code><a href="array.constants.php#constant.array-filter-use-both">ARRAY_FILTER_USE_BOTH</a></code></strong>
    (<span class="type"><a href="language.types.integer.php" class="type int">int</a></span>)
   </dt>
   <dd>
    <span class="simpara">
     <strong><code><a href="array.constants.php#constant.array-filter-use-both">ARRAY_FILTER_USE_BOTH</a></code></strong> é utilizada com a função
     <span class="function"><a href="function.array-filter.php" class="function">array_filter()</a></span> para passar chave e valor para a função de retorno informada.
    </span>
   </dd>
  
 </dl>
 </p>

 <dl>
  
   <dt id="constant.count-normal">
    <strong><code><a href="array.constants.php#constant.count-normal">COUNT_NORMAL</a></code></strong>
    (<span class="type"><a href="language.types.integer.php" class="type int">int</a></span>)
   </dt>
   <dd>
    <span class="simpara">

    </span>
   </dd>
  
  
   <dt id="constant.count-recursive">
    <strong><code><a href="array.constants.php#constant.count-recursive">COUNT_RECURSIVE</a></code></strong>
    (<span class="type"><a href="language.types.integer.php" class="type int">int</a></span>)
   </dt>
   <dd>
    <span class="simpara">

    </span>
   </dd>
  
  
   <dt id="constant.extr-overwrite">
    <strong><code><a href="array.constants.php#constant.extr-overwrite">EXTR_OVERWRITE</a></code></strong>
    (<span class="type"><a href="language.types.integer.php" class="type int">int</a></span>)
   </dt>
   <dd>
    <span class="simpara">

    </span>
   </dd>
  
  
   <dt id="constant.extr-skip">
    <strong><code><a href="array.constants.php#constant.extr-skip">EXTR_SKIP</a></code></strong>
    (<span class="type"><a href="language.types.integer.php" class="type int">int</a></span>)
   </dt>
   <dd>
    <span class="simpara">

    </span>
   </dd>
  
  
   <dt id="constant.extr-prefix-same">
    <strong><code><a href="array.constants.php#constant.extr-prefix-same">EXTR_PREFIX_SAME</a></code></strong>
    (<span class="type"><a href="language.types.integer.php" class="type int">int</a></span>)
   </dt>
   <dd>
    <span class="simpara">

    </span>
   </dd>
  
  
   <dt id="constant.extr-prefix-all">
    <strong><code><a href="array.constants.php#constant.extr-prefix-all">EXTR_PREFIX_ALL</a></code></strong>
    (<span class="type"><a href="language.types.integer.php" class="type int">int</a></span>)
   </dt>
   <dd>
    <span class="simpara">

    </span>
   </dd>
  
  
   <dt id="constant.extr-prefix-invalid">
    <strong><code><a href="array.constants.php#constant.extr-prefix-invalid">EXTR_PREFIX_INVALID</a></code></strong>
    (<span class="type"><a href="language.types.integer.php" class="type int">int</a></span>)
   </dt>
   <dd>
    <span class="simpara">

    </span>
   </dd>
  
  
   <dt id="constant.extr-prefix-if-exists">
    <strong><code><a href="array.constants.php#constant.extr-prefix-if-exists">EXTR_PREFIX_IF_EXISTS</a></code></strong>
    (<span class="type"><a href="language.types.integer.php" class="type int">int</a></span>)
   </dt>
   <dd>
    <span class="simpara">

    </span>
   </dd>
  
  
   <dt id="constant.extr-if-exists">
    <strong><code><a href="array.constants.php#constant.extr-if-exists">EXTR_IF_EXISTS</a></code></strong>
    (<span class="type"><a href="language.types.integer.php" class="type int">int</a></span>)
   </dt>
   <dd>
    <span class="simpara">

    </span>
   </dd>
  
  
   <dt id="constant.extr-refs">
    <strong><code><a href="array.constants.php#constant.extr-refs">EXTR_REFS</a></code></strong>
    (<span class="type"><a href="language.types.integer.php" class="type int">int</a></span>)
   </dt>
   <dd>
    <span class="simpara">

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