PHP Array Functions - Manual

PHP Array Functions - Manual

memorize.aimemorize.ai (lvl 286)
Section 1

Preview this deck

Сливает один или большее количество массивов

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 14, 2020

Cards (81)

Section 1

(50 cards)

Сливает один или большее количество массивов

Front

array_merge

Back

array_sum

Front

Calculate the sum of values in an array

Back

Возвращает последний ключ массива array, если он не пустой; NULL в противном случае.

Front

array_key_last

Back

array_pad

Front

Pad array to the specified length with a value

Back

array_product

Front

Calculate the product of values in an array

Back

array_uintersect

Front

Computes the intersection of arrays, compares data by a callback function

Back

array_rand

Front

Pick one or more random keys out of an array

Back

Вычислить пересечение массивов, сравнивая ключи

Front

array_intersect_key

Back

Рекурсивное слияние одного или более массивов

Front

array_merge_recursive

Back

Разбивает массив на части

Front

array_chunk

Back

array_replace_recursive

Front

Replaces elements from passed arrays into the first array recursively

Back

Создает массив и заполняет его значениями с определенными ключами

Front

array_fill_keys

Back

Вычисляет расхождение массивов с дополнительной проверкой индекса, осуществляемой при помощи callback-функции

Front

array_diff_uassoc

Back

array_udiff

Front

Computes the difference of arrays by using a callback function for data comparison

Back

Вычисляет расхождение массивов, сравнивая ключи

Front

array_diff_key

Back

Меняет регистр всех ключей в массиве

Front

array_change_key_case

Back

array_replace

Front

Replaces elements from passed arrays into the first array

Back

Вычисляет расхождение массивов, используя callback-функцию для сравнения ключей

Front

array_diff_ukey

Back

Вычисляет схождение массивов с дополнительной проверкой индекса, осуществляемой при помощи callback-функции

Front

array_intersect_uassoc

Back

Вычисляет схождение массивов

Front

array_intersect

Back

Фильтрует элементы массива с помощью callback-функции

Front

array_filter

Back

array_splice

Front

Remove a portion of the array and replace it with something else

Back

Проверяет, присутствует ли в массиве указанный ключ или индекс

Front

array_key_exists

Back

array_udiff_uassoc

Front

Computes the difference of arrays with additional index check, compares data and indexes by a callback function

Back

array_search

Front

Searches the array for a given value and returns the first corresponding key if successful

Back

array_unshift

Front

Prepend one or more elements to the beginning of an array

Back

array_uintersect_assoc

Front

Computes the intersection of arrays with additional index check, compares data by a callback function

Back

array_reverse

Front

Return an array with elements in reverse order

Back

Вычисляет схождение массивов с дополнительной проверкой индекса

Front

array_intersect_assoc

Back

Возвращает все или некоторое подмножество ключей массива

Front

array_keys

Back

array_udiff_assoc

Front

Computes the difference of arrays with additional index check, compares data by a callback function

Back

array_multisort

Front

Sort multiple or multi-dimensional arrays

Back

array_uintersect_uassoc

Front

Computes the intersection of arrays with additional index check, compares data and indexes by separate callback functions

Back

array_reduce

Front

Iteratively reduce the array to a single value using a callback function

Back

array_pop

Front

Pop the element off the end of array

Back

Подсчитывает количество всех значений массива

Front

array_count_value

Back

Применяет callback-функцию ко всем элементам указанных массивов

Front

array_map

Back

array_values

Front

Return all the values of an array

Back

Получает первый ключ массива

Front

array_key_first

Back

Вычислить расхождение массивов

Front

array_diff

Back

Возвращает массив из значений одного столбца входного массива

Front

array_column

Back

array_shift

Front

Shift an element off the beginning of array

Back

Создает новый массив, используя один массив в качестве ключей, а другой для его значений

Front

array_combine

Back

array_push

Front

Push one or more elements onto the end of array

Back

array_unique

Front

Removes duplicate values from an array

Back

Вычисляет расхождение массивов с дополнительной проверкой индекса

Front

array_diff_assoc

Back

Вычисляет схождение массивов, используя callback-функцию для сравнения ключей

Front

array_intersect_ukey

Back

Заполняет массив значениями

Front

array_fill

Back

array_slice

Front

Extract a slice of the array

Back

Меняет местами ключи с их значениями в массиве

Front

array_flip

Back

Section 2

(31 cards)

array

Front

Create an array

Back

compact

Front

Create array containing variables and their values

Back

count

Front

Count all elements in an array, or something in an object

Back

uasort

Front

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

Back

in_array

Front

Checks if a value exists in an array

Back

range

Front

Create an array containing a range of elements

Back

current

Front

Return the current element in an array

Back

array_walk

Front

Apply a user supplied function to every member of an array

Back

ksort

Front

Sort an array by key

Back

key

Front

Fetch a key from an array

Back

key_exists

Front

Alias of array_key_exists

Back

list

Front

Assign variables as if they were an array

Back

asort

Front

Sort an array and maintain index association

Back

extract

Front

Import variables into the current symbol table from an array

Back

natsort

Front

Sort an array using a "natural order" algorithm

Back

arsort

Front

Sort an array in reverse order and maintain index association

Back

sizeof

Front

Alias of count

Back

pos

Front

Alias of current

Back

rsort

Front

Sort an array in reverse order

Back

krsort

Front

Sort an array by key in reverse order

Back

uksort

Front

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

Back

each

Front

Return the current key and value pair from an array and advance the array cursor

Back

sort

Front

Sort an array

Back

reset

Front

Set the internal pointer of an array to its first element

Back

shuffle

Front

Shuffle an array

Back

next

Front

Advance the internal pointer of an array

Back

natcasesort

Front

Sort an array using a case insensitive "natural order" algorithm

Back

prev

Front

Rewind the internal array pointer

Back

end

Front

Set the internal pointer of an array to its last element

Back

array_walk_recursive

Front

Apply a user function recursively to every member of an array

Back

usort

Front

Sort an array by values using a user-defined comparison function

Back