preg_replace_callback()
Build the replacement for each match by returning a string from a callback.
CKTIS / PHP
Programming syntax, operators and concepts. Find an explanation, explore an example and return to learning.
Build the replacement for each match by returning a string from a callback.
Split text at regular-expression matches.
Move the internal array pointer back one element before reading it.
Send formatted text directly to output and return its byte count.
Display array keys, values and nested structure for inspection.
Detect a declared property, even when private, uninitialized, or set to null.
Generate the requested number of cryptographically secure random bytes.
Draw a uniformly distributed, cryptographically secure integer from the inclusive interval.
Create an ascending or descending sequence as an array.
Replace percent-encoded byte pairs with their original bytes in a URL component.
Encode bytes for one RFC 3986 URL component.
Rewind the internal array pointer and return the first value in its current order.
Use round to produce a float at the requested decimal precision.
Sort values from high to low in place and assign new integer keys from zero.
Strip trailing bytes from a character set, stopping at the first other byte.
Encode a PHP value into a binary-safe string retaining types and array keys.
Destroy the stored data associated with the active session and report success.
Assign a new identifier to an active session while preserving its current session variables.
Start or resume a session, invoking its storage handler to populate $_SESSION.
Queue a Set-Cookie response field before headers are sent.
Convert the variable in place using the named target type.
Make a random permutation of the array values in place, assigning fresh zero-based keys.
This alias of count measures the number of elements or the count supplied by a Countable object.
Sort values from low to high in place, discarding all original keys.