Our social:
Propellerads

Wednesday, 20 April 2016

PHP - Array Functions

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

0 comments:

Post a Comment