Knowledge baseExam Center
ENEnglish
Choose language13

CKTIS / PHP

Knowledge base — PHP

Programming syntax, operators and concepts. Find an explanation, explore an example and return to learning.

Entries: 504

PHP

SplQueue::count — Get the queue size

Use `SplQueue::count` to read the current number of elements in a FIFO queue without removing anything. An empty queue returns `0`.

Advanced · PHP 8.3
PHP

array_change_key_case()

Normalize associative column names before looking them up.

Intermediate · PHP 8.4; repository runtime, production runtime not attested
PHP

array_chunk()

Split successive elements into groups of a positive size for batch processing.

Intermediate · PHP 8.4; repository runtime, production runtime not attested
PHP

array_column()

Extract one field from each record and optionally index the resulting values by another field.

Intermediate · PHP 8.4; repository runtime, production runtime not attested
PHP

array_combine()

Use one list for the keys and another for the values of a new array.

Intermediate · PHP 8.4; repository runtime, production runtime not attested
PHP

array_count_values()

Build a frequency table from integer or string values.

Intermediate · PHP 8.4; repository runtime, production runtime not attested
PHP

array_diff()

Keep entries of the first array whose values are absent from every comparison array.

Intermediate · PHP 8.4; repository runtime, production runtime not attested
PHP

array_diff_assoc()

Find first-array entries for which no other array contains the same key and matching value.

Intermediate · PHP 8.4; repository runtime, production runtime not attested
PHP

array_diff_key()

Remove entries of the first array whose keys occur in any comparison array.

Intermediate · PHP 8.4; repository runtime, production runtime not attested
PHP

array_fill()

Initialize consecutive integer keys from a chosen starting index, assigning the same value at each key.

Intermediate · PHP 8.4; repository runtime, production runtime not attested
PHP

array_fill_keys()

Turn the values of a list into keys and initialize every resulting entry with one common value.

Intermediate · PHP 8.4; repository runtime, production runtime not attested
PHP

array_flip()

Exchange keys and values to build a reverse lookup.

Intermediate · PHP 8.4; repository runtime, production runtime not attested
PHP

array_intersect()

Keep first-array values that occur in every other array.

Intermediate · PHP 8.4; repository runtime, production runtime not attested
PHP

array_intersect_assoc()

Retain an entry from the first array only when every comparison array has the same key together with a matching value.

Intermediate · PHP 8.4; repository runtime, production runtime not attested
PHP

array_intersect_key()

Select first-array entries by keys present in every other array.

Intermediate · PHP 8.4; repository runtime, production runtime not attested
PHP

array_is_list()

Test whether the keys, in iteration order, are consecutive integers starting at zero.

Intermediate · PHP 8.4; repository runtime, production runtime not attested