PHP - Array Functions

Unknown 15:31

Image result for PHP - Arrays

PHP - Array Functions



These functions allow you to interact with and manipulate arrays in various ways. Arrays are essential for storing, managing, and operating on sets of variables.

Installation

There is no installation needed to use these functions; they are part of the PHP core.

Runtime Configuration

This extension has no configuration directives defined in php.ini.

PHP Array Constants

Sr.NoConstant & 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

Share this

Related Posts

  • PHP - Loop TypesPHP - Loop TypesLoops in PHP are used to execute the same block of code a specified number of times. PHP supports follo
  • PHP - Operator TypesPHP - Operator TypesWhat is Operator? Simple answer can be given using expression 4 + 5 is equal to 9. Here 4
  • PHP - Coding StandardPHP - Coding StandardEvery company follows a different coding standard based on their best practices. Coding standard i
  • PHP - Installation on Windows with ApachePHP - Installation on Windows with ApacheTo install Apache with PHP 5 on Windows follow the following steps. If your PH

EmoticonEmoticon

:)
:(
=(
^_^
:D
=D
=)D
|o|
@@,
;)
:-bd
:-d
:p
:ng