Array Constants
Summary: Array Constants
Array constants are a list of values that can be used as arguments in your array formulas.
| Sr.No | Constant | Description |
|---|---|---|
| 1 |
CASE_LOWER |
Used with array_change_key_case() to convert array keys to lower case |
| 2 |
CASE_UPPER |
Used with array_change_key_case() to convert array keys to upper case |
| 3 |
SORT_ASC |
Used with array_multisort() to sort in ascending order |
| 4 |
SORT_DESC |
Used with array_multisort() to sort in descending order |
| 5 |
SORT_REGULAR |
Used to compare items normally |
| 6 |
SORT_NUMERIC |
Used to compare items numerically |
| 7 |
SORT_STRING |
Used to compare items as strings |
| 8 |
SORT_LOCALE_STRING |
Used to compare items as strings, based on the current locale |
| 9 |
COUNT_NORMAL |
|
| 10 |
COUNT_RECURSIVE |
|
| 11 |
EXTR_OVERWRITE |
|
| 12 |
EXTR_SKIP |
|
| 13 |
EXTR_PREFIX_SAME |
|
| 14 |
EXTR_PREFIX_ALL |
|
| 15 |
EXTR_PREFIX_INVALID |
|
| 16 |
EXTR_PREFIX_IF_EXISTS |
|
| 17 |
EXTR_IF_EXISTS |
|
| 18 |
EXTR_REFS |
