Thursday 22 August 2013

Php-training-Thursday-august-22-2013


Introduced New Array Functions in PHP

array_combine() - Creates an array by using one array for keys and another for its values.
Definition and Usage
Syntax
array_diff_uassoc() - Computes the difference of arrays with additional index check which is performed by a user supplied callback function.
Definition and Usage
Syntax
More Examples
array_udiff() - Computes the difference of arrays by using a callback function for data comparison.
Definition and Usage
Syntax
Examples
array_udiff_assoc() - Computes the difference of arrays with additional index check. The data is compared by using a callback function.
Example
Definition and Usage
Syntax
array_udiff_uassoc() - Computes the difference of arrays with additional index check. The data is compared by using a callback function. The index check is done by a callback function also.
Example
Definition and Usage
Syntax
array_walk_recursive() - Apply a user function recursively to every member of an array.
Example
Definition and Usage
Syntax
array_uintersect_assoc() - Computes the intersection of arrays with additional index check. The data is compared by using a callback function.
Example
Definition and Usage
Syntax
array_uintersect_uassoc() - Computes the intersection of arrays with additional index check. Both the data and the indexes are compared by using separate callback functions.
Example
Definition and Usage
Syntax
array_uintersect() - Computes the intersection of arrays. The data is compared by using a callback function.
 
Definition and Usage
Syntax
Example

No comments:

Post a Comment