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

array_walk()

Visit each array element with a callback receiving the value and key, plus an optional user argument.

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

array_walk_recursive()

Visit each leaf of a nested array.

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

arsort()

Rank values from largest to smallest in the original map.

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

asort()

Sort values in ascending order while retaining the original keys.

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

assert()

An enabled assert checks the truth of an expression and returns true on success.

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

base64_decode()

Decode Base64 into bytes. In permissive mode characters outside the alphabet can be discarded, so use strict mode when malformed input matters.

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

base64_encode()

Encode arbitrary bytes as Base64 text for a text-only field.

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

bin2hex()

Display binary data as two lowercase hexadecimal digits per byte, including leading zero nibbles.

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

boolval()

Convert a value to its boolean interpretation before combining flags.

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

call_user_func()

Invoke a callable with the supplied arguments and return its result.

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

call_user_func_array()

PHP 8 binds string keys to parameter names and integer keys by position in iteration order.

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

ceil()

Use ceil to round toward positive infinity, producing the smallest integral value at least as large as the argument.

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

chr()

Produce a string containing exactly one byte.

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

class_exists()

Look up a class name case-insensitively.

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

compact()

Gather named variables from the current scope into an associative array.

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

count: element count, not the last index

count returns the number of array elements or the result of a Countable object method. It does not measure strings or assume consecutive indexes starting at zero.

Basic · PHP 8.4
PHP

current()

Read the value under the internal array pointer without moving it.

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

define()

Call define to create a case-sensitive named constant at runtime; the name is supplied as a string and may include a namespace.

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

end()

Move the internal array pointer to the last element and return its value.

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

explode()

Split at exact occurrences of a nonempty separator, retaining empty fields.

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

extract()

Import valid keys as local variable names and return the number imported.

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

filter_input()

Read one original SAPI input field and apply the requested filter.

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

filter_input_array()

Filter a set of original SAPI fields using one filter or a map of field-specific rules.

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

filter_var()

Apply a filter to a supplied value.

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