array_walk()
Visit each array element with a callback receiving the value and key, plus an optional user argument.
CKTIS / PHP
Programming syntax, operators and concepts. Find an explanation, explore an example and return to learning.
Visit each array element with a callback receiving the value and key, plus an optional user argument.
Visit each leaf of a nested array.
Rank values from largest to smallest in the original map.
Sort values in ascending order while retaining the original keys.
An enabled assert checks the truth of an expression and returns true on success.
Decode Base64 into bytes. In permissive mode characters outside the alphabet can be discarded, so use strict mode when malformed input matters.
Encode arbitrary bytes as Base64 text for a text-only field.
Display binary data as two lowercase hexadecimal digits per byte, including leading zero nibbles.
Convert a value to its boolean interpretation before combining flags.
Invoke a callable with the supplied arguments and return its result.
PHP 8 binds string keys to parameter names and integer keys by position in iteration order.
Use ceil to round toward positive infinity, producing the smallest integral value at least as large as the argument.
Produce a string containing exactly one byte.
Look up a class name case-insensitively.
Gather named variables from the current scope into an associative array.
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.
Read the value under the internal array pointer without moving it.
Call define to create a case-sensitive named constant at runtime; the name is supplied as a string and may include a namespace.
Move the internal array pointer to the last element and return its value.
Split at exact occurrences of a nonempty separator, retaining empty fields.
Import valid keys as local variable names and return the number imported.
Read one original SAPI input field and apply the requested filter.
Filter a set of original SAPI fields using one filter or a map of field-specific rules.
Apply a filter to a supplied value.