CakeFest 2024: The Official CakePHP Conference

Costanti predefinite

Le costanti qui elencate sono sempre disponibili in quanto parte del core di PHP.

CASE_LOWER (integer)
CASE_LOWER è usata con array_change_key_case() per convertire le chiavi di un array a caratteri minuscoli. E' anche il valore di default per array_change_key_case().
CASE_UPPER (integer)
CASE_UPPER è usata con array_change_key_case() per convertire le chiavi di un array a caratteri maiuscoli.

Flag per l'ordinamento:

SORT_ASC (integer)
SORT_ASC è usata con array_multisort() per ordinare in modo crescente.
SORT_DESC (integer)
SORT_DESC è usata con array_multisort()per ordinare in modo decrescente.

Flag per il tipo dell'ordinamento:

SORT_REGULAR (integer)
SORT_REGULAR è usata per effettuare un normale confronto.
SORT_NUMERIC (integer)
SORT_NUMERIC è usata per effettuare in modo numerico.
SORT_STRING (integer)
SORT_STRING è usata per effettuare un confronto tra stringhe.
SORT_LOCALE_STRING (integer)
SORT_LOCALE_STRING è usata per effettuare un confronto tra stringhe basate sul locale corrente. Aggiunta in PHP 4.4.0 e 5.0.2.
SORT_NATURAL (integer)
SORT_NATURAL è usata per effettuare un confronto tra stringhe usando un "confronto naturale" come natsort(). Aggiunta in PHP 5.4.0.
SORT_FLAG_CASE (integer)
SORT_FLAG_CASE può essere combinata (OR bit a bit) con SORT_STRING o SORT_NATURAL per ordinare stringhe in modo case-insensitively. Aggiunta in PHP 5.4.0.

COUNT_NORMAL (integer)
COUNT_RECURSIVE (integer)
EXTR_OVERWRITE (integer)
EXTR_SKIP (integer)
EXTR_PREFIX_SAME (integer)
EXTR_PREFIX_ALL (integer)
EXTR_PREFIX_INVALID (integer)
EXTR_PREFIX_IF_EXISTS (integer)
EXTR_IF_EXISTS (integer)
EXTR_REFS (integer)
add a note

User Contributed Notes

There are no user contributed notes for this page.
To Top