Section 1

Preview this deck

DEFINITION array_pop

Front

Star 0%
Star 0%
Star 0%
Star 0%
Star 0%

0.0

0 reviews

5
0
4
0
3
0
2
0
1
0

Active users

1

All-time users

1

Favorites

0

Last updated

1 year ago

Date created

Mar 1, 2020

Cards (150)

Section 1

(50 cards)

DEFINITION array_pop

Front

Pop the element off the end of array. This function will reset() the array pointer of the input array after use.

Back

DEFINITION array_walk_recursive

Front

Apply a user function recursively to every member of an array

Back

DEFINITION array_fill_keys

Front

Create array specifying the keys with a default value

Back

DEFINITION array_filter

Front

Filters elements of an array using a callback function

Back

DEFINITION array

Front

Create an array

Back

DEFINITION key

Front

Returns the index element of the current array position.

Back

DEFINITION array_pad

Front

Pad array to the specified length with a (positive/right or negative/left) value. Length must be larger than current array size.

Back

DEFINITION array_combine

Front

Creates an array by using one array for keys and another for its value

Back

DEFINITION array_rand

Front

Pick one or more random keys out of an array

Back

DEFINITION array_reverse

Front

Return an array with elements in reverse order, with the option to preserve the keys for numeric keys.

Back

DEFINITION prev

Front

Rewind the internal array pointer

Back

DEFINITION current (pos)

Front

Return current element that the internal array pointer is set to.

Back

DEFINITION next

Front

Advance the internal pointer of an array

Back

DEFINITION array_shift

Front

Shift an element off the beginning of array. This function will reset() the array pointer of the input array after use.

Back

DEFINITION array_unshift

Front

Prepend one or more elements to the beginning of an array. All numerical array keys will be modified to start counting from zero while literal keys won't be changed.

Back

DEFINITION array_chunk

Front

Splits an array into smaller parts

Back

DEFINITION array_fill

Front

Creates an array specifying the starting index and length with a default value

Back

DEFINITION compact

Front

Creates an associative array using variables. (Opposite of extract)

Back

DEFINITION in_array

Front

Checks if a value exists in an array optionally using a strict comparison

Back

DEFINITION array_replace

Front

Replaces the values of the initial array with the values from all the following arrays with the same keys leaving values untouched for keys not found in any of the subsequent arrays and creating new entries for keys not found in the initial array but present in subsequent arrays in the order they are listed.

Back

DEFINITION array_keys

Front

Return all the keys or a subset of the keys of an array matching a search value that can be strictly compared

Back

DEFINITION array_flip

Front

Exchanges all keys with their associated values in an array.

Back

DEFINITION array_merge_recursive

Front

Merge one or more arrays recursively

Back

DEFINITION range

Front

Create a numeric or character array containing a range start, stop, and step

Back

DEFINITION array_key_first

Front

Gets the first key of an array

Back

DEFINITION array_slice

Front

Extract a slice of the array with a given offset and length optionally preserving keys.

Back

DEFINITION end

Front

Set the internal pointer of an array to its last element

Back

DEFINITION array_count_values

Front

Calculates the frequency of each value that appears in the array

Back

DEFINITION array_reduce

Front

Iteratively reduce the array to a single value using a callback function and an optional initial value

Back

DEFINITION array_push

Front

Push one or more elements onto the end of array

Back

DEFINITION extract

Front

Creates variables using an associative array. (Opposite of compact)

Back

DEFINITION array_map

Front

Applies the callback to the elements of the given arrays

Back

DEFINITION array_unique

Front

Removes duplicate values from an array and optionally set the comparison type. Note that keys are preserved. If multiple elements compare equal under, then the key and value of the first equal element will be retained

Back

DEFINITION list

Front

Creates variables by extracting any number of values in an array.

Back

DEFINITION array_search

Front

Searches the array for a given value (strictly compared or not) and returns the first corresponding key if successful

Back

DEFINITION array_merge

Front

Merge one or more arrays

Back

DEFINITION array_product

Front

Calculate the product of values in an array

Back

DEFINITION array_sum

Front

Calculate the sum of values in an array

Back

DEFINITION array_change_key_case

Front

Changes the casing of each key in an array.

Back

DEFINITION array_replace_recursive

Front

Replaces recursively the values of the initial array with the values from all the following arrays with the same keys leaving values untouched for keys not found in any of the subsequent arrays and creating new entries for keys not found in the initial array but present in subsequent arrays in the order they are listed.

Back

DEFINITION array_multisort

Front

Sort multiple or multi-dimensional arrays in a specifiable order and sort type. Associative (string) keys will be maintained, but numeric keys will be re-indexed.

Back

DEFINITION array_splice

Front

Removes a portion of the array and replace it with something else at a given offset and length

Back

DEFINITION reset

Front

Set the internal pointer of an array to its first element

Back

DEFINITION array_key_last

Front

Gets the last key of an array

Back

DEFINITION array_key_exists (key_exists)

Front

Checks if the given key or index exists in the array

Back

DEFINITION shuffle

Front

Shuffle the order of an array

Back

DEFINITION array_values

Front

Return all the values of an array and indexes the array numerically.

Back

DEFINITION array_column

Front

Extract a single column from a multidimensional array or array of objects.

Back

DEFINITION count (sizeof)

Front

Counts the total elements in an array

Back

DEFINITION array_walk

Front

Apply a user supplied function to every member of an array. Array walk can operate with keys while array map cannot and can modify existing array.

Back

Section 2

(50 cards)

SIGNATURE array_intersect_key

Front

( array $array1 , array $array2 [, array $... ] ) : array

Back

SIGNATURE array_key_first

Front

( array $array ) : mixed

Back

SIGNATURE array_intersect_assoc

Front

( array $array1 , array $array2 [, array $... ] ) : array

Back

DEFINITION krsort

Front

Sort an array by key in reverse order maintaining key to data correlations. This is useful mainly for associative arrays.

Back

DEFINITION array_diff_assoc

Front

Finds the difference between the initial array against any number of arrays comparing all key/value pairs

Back

DEFINITION array_intersect_assoc

Front

Finds the intersection between the initial array against any number of arrays comparing all key/value pairs

Back

SIGNATURE array_filter

Front

( array $array [, callable $callback [, int $flag = 0 ]] ) : array

Back

DEFINITION array_udiff_uassoc

Front

Finds the difference between the initial array and any number of arrays comparing all key/value pairs with a user value compare and key compare function

Back

DEFINITION ksort

Front

Sort an array by key maintaining key to data correlations. This is useful mainly for associative arrays.

Back

DEFINITION uasort

Front

Sort an array with a user-defined value comparison function and maintain index association

Back

DEFINITION sort

Front

Sort an array by value, indices are reordered.

Back

DEFINITION arsort

Front

Sort an array by value in reverse order and maintain index association. Optionally choose the sorting method

Back

SIGNATURE array_chunk

Front

( array $array , int $size [, bool $preserve_keys = FALSE ] ) : array

Back

SIGNATURE array_diff

Front

( array $array1 , array $array2 [, array $... ] ) : array

Back

DEFINITION array_diff_key

Front

Finds the difference between the initial array against any number of arrays comparing only the keys

Back

SIGNATURE array_key_last

Front

( array $array ) : mixed

Back

DEFINITION array_diff_uassoc

Front

Finds the difference between the initial array against any number of arrays comparing all key/value pairs with a user key compare function

Back

SIGNATURE array_fill

Front

( int $start_index , int $num , mixed $value ) : array

Back

DEFINITION uksort

Front

Sort an array by keys using a user-defined key comparison function

Back

SIGNATURE array_diff_ukey

Front

( array $array1 , array $array2 [, array $... ], callable $key_compare_func ) : array

Back

SIGNATURE array_diff_uassoc

Front

( array $array1 , array $array2 [, array $... ], callable $key_compare_func ) : array

Back

SIGNATURE array_fill_keys

Front

( array $keys , mixed $value ) : array

Back

SIGNATURE array_count_values

Front

( array $array ) : array

Back

SIGNATURE array_intersect_uassoc

Front

( array $array1 , array $array2 [, array $... ], callable $key_compare_func ) : array

Back

SIGNATURE array_merge

Front

([ array $... ] ) : array

Back

DEFINITION natsort

Front

Sort an array by value using a "natural order" algorithm. Indices are reordered.

Back

SIGNATURE array_intersect

Front

( array $array1 , array $array2 [, array $... ] ) : array

Back

SIGNATURE array_combine

Front

( array $keys , array $values ) : array

Back

DEFINITION natcasesort

Front

Sort an array by value using a case insensitive "natural order" algorithm. Indices are reordered.

Back

DEFINITION array_intersect

Front

Finds the intersection between the initial array against any number of arrays comparing only the values

Back

SIGNATURE array_change_key_case

Front

( array $array [, int $case = CASE_LOWER ] ) : array

Back

DEFINITION rsort

Front

Sort an array by value in reverse order. Indices are reordered.

Back

SIGNATURE array_multisort

Front

( array &$array1 [, mixed $array1_sort_order = SORT_ASC [, mixed $array1_sort_flags = SORT_REGULAR [, mixed $... ]]] ) : bool

Back

SIGNATURE array_merge_recursive

Front

([ array $... ] ) : array

Back

DEFINITION array_uintersect_uassoc

Front

Finds the intersection between the initial array and any number of arrays comparing all key/value pairs with a user value compare and key compare function

Back

DEFINITION usort

Front

Sort an array by values using a user-defined value comparison function. This function assigns new keys to the elements in array. It will remove any existing keys that may have been assigned, rather than just reordering the keys.

Back

SIGNATURE array_column

Front

( array $input , mixed $column_key [, mixed $index_key = NULL ] ) : array

Back

DEFINITION asort

Front

Sort an array by value and maintain index association

Back

DEFINITION array_diff

Front

Finds the difference between the initial array against any number of arrays comparing only values

Back

SIGNATURE array_key_exists (key_exists)

Front

( mixed $key , array $array ) : bool

Back

DEFINITION array_uintersect_assoc

Front

Finds the intersection between the initial array and any number of arrays comparing all key/value pairs with a user value compare function

Back

SIGNATURE array_diff_assoc

Front

( array $array1 , array $array2 [, array $... ] ) : array

Back

SIGNATURE array_keys

Front

( array $array ) : array ( array $array , mixed $search_value [, bool $strict = FALSE ] ) : array

Back

SIGNATURE array_intersect_ukey

Front

( array $array1 , array $array2 [, array $... ], callable $key_compare_func ) : array

Back

SIGNATURE array_diff_key

Front

( array $array1 , array $array2 [, array $... ] ) : array

Back

SIGNATURE array_map

Front

( callable $callback , array $array1 [, array $... ] ) : array

Back

SIGNATURE array_flip

Front

( array $array ) : array

Back

DEFINITION array_uintersect

Front

Finds the intersection between the initial array and any number of arrays comparing only the values with a user value compare function

Back

DEFINITION array_intersect_key

Front

Finds the intersection between the initial array against any number of arrays comparing only the keys

Back

DEFINITION array_diff_ukey

Front

Finds the difference between the initial array against any number of arrays comparing only the keys with a user key compare function

Back

Section 3

(50 cards)

SIGNATURE array_sum

Front

( array $array ) : number

Back

SIGNATURE array_splice

Front

( array &$input , int $offset [, int $length = count($input) [, mixed $replacement = array() ]] ) : array

Back

SIGNATURE natcasesort

Front

( array &$array ) : bool

Back

SIGNATURE usort

Front

Parameters 1) array &$array 2) callable $value_compare_func Return Type bool

Back

SIGNATURE uasort

Front

( array &$array , callable $value_compare_func ) : bool

Back

SIGNATURE key

Front

( array $array ) : mixed

Back

SIGNATURE array_walk_recursive

Front

( array &$array , callable $callback [, mixed $userdata = NULL ] ) : bool

Back

SIGNATURE array

Front

([ mixed $... ] ) : array

Back

SIGNATURE array_pad

Front

( array $array , int $size , mixed $value ) : array

Back

SIGNATURE arsort

Front

( array &$array [, int $sort_flags = SORT_REGULAR ] ) : bool

Back

SIGNATURE current (pos)

Front

( array $array ) : mixed

Back

SIGNATURE array_values

Front

( array $array ) : array

Back

SIGNATURE array_udiff_uassoc

Front

( array $array1 , array $array2 [, array $... ], callable $value_compare_func , callable $key_compare_func ) : array

Back

SIGNATURE uksort

Front

Parameters 1) array &$array 2) callable $key_compare_func ) Return Type bool

Back

SIGNATURE array_uintersect_assoc

Front

( array $array1 , array $array2 [, array $... ], callable $value_compare_func ) : array

Back

SIGNATURE array_udiff_assoc

Front

( array $array1 , array $array2 [, array $... ], callable $value_compare_func ) : array

Back

SIGNATURE end

Front

( array &$array ) : mixed

Back

SIGNATURE array_pop

Front

( array &$array ) : mixed

Back

SIGNATURE array_replace_recursive

Front

( array $array1 [, array $... ] ) : array

Back

SIGNATURE array_uintersect

Front

( array $array1 , array $array2 [, array $... ], callable $value_compare_func ) : array

Back

SIGNATURE prev

Front

( array &$array ) : mixed

Back

SIGNATURE array_unique

Front

( array $array [, int $sort_flags = SORT_STRING ] ) : array

Back

SIGNATURE array_uintersect_uassoc

Front

( array $array1 , array $array2 [, array $... ], callable $value_compare_func , callable $key_compare_func ) : array

Back

SIGNATURE range

Front

( mixed $start , mixed $end [, number $step = 1 ] ) : array

Back

SIGNATURE shuffle

Front

( array &$array ) : bool

Back

SIGNATURE array_reduce

Front

( array $array , callable $callback [, mixed $initial = NULL ] ) : mixed

Back

SIGNATURE array_reverse

Front

( array $array [, bool $preserve_keys = FALSE ] ) : array

Back

SIGNATURE list

Front

( mixed $var1 [, mixed $... ] ) : array

Back

SIGNATURE array_push

Front

( array &$array [, mixed $... ] ) : int

Back

SIGNATURE asort

Front

( array &$array [, int $sort_flags = SORT_REGULAR ] ) : bool

Back

SIGNATURE array_replace

Front

( array $array1 [, array $... ] ) : array

Back

SIGNATURE array_shift

Front

( array &$array ) : mixed

Back

SIGNATURE in_array

Front

( mixed $needle , array $haystack [, bool $strict = FALSE ] ) : bool

Back

SIGNATURE array_walk

Front

( array &$array , callable $callback [, mixed $userdata = NULL ] ) : bool

Back

SIGNATURE array_udiff

Front

( array $array1 , array $array2 [, array $... ], callable $value_compare_func ) : array

Back

SIGNATURE natsort

Front

( array &$array ) : bool

Back

SIGNATURE count (sizeof)

Front

( mixed $array_or_countable [, int $mode = COUNT_NORMAL ] ) : int

Back

SIGNATURE compact

Front

( mixed $varname1 [, mixed $... ] ) : array

Back

SIGNATURE next

Front

( array &$array ) : mixed

Back

SIGNATURE rsort

Front

( array &$array [, int $sort_flags = SORT_REGULAR ] ) : bool

Back

SIGNATURE array_search

Front

( mixed $needle , array $haystack [, bool $strict = FALSE ] ) : mixed

Back

SIGNATURE ksort

Front

( array &$array [, int $sort_flags = SORT_REGULAR ] ) : bool

Back

SIGNATURE array_rand

Front

( array $array [, int $num = 1 ] ) : mixed

Back

SIGNATURE krsort

Front

( array &$array [, int $sort_flags = SORT_REGULAR ] ) : bool

Back

SIGNATURE array_unshift

Front

( array &$array [, mixed $... ] ) : int

Back

SIGNATURE array_product

Front

( array $array ) : number

Back

SIGNATURE reset

Front

( array &$array ) : mixed

Back

SIGNATURE sort

Front

( array &$array [, int $sort_flags = SORT_REGULAR ] ) : bool

Back

SIGNATURE extract

Front

( array &$array [, int $flags = EXTR_OVERWRITE [, string $prefix = NULL ]] ) : int

Back

SIGNATURE array_slice

Front

( array $array , int $offset [, int $length = NULL [, bool $preserve_keys = FALSE ]] ) : array

Back