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

ltrim()

Remove matching bytes from the left until the first byte outside the mask.

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

max()

With one nonempty array, max selects its greatest value rather than its key.

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

mb_strlen()

Use mb_strlen to count characters in the specified encoding rather than raw bytes; null selects the internal encoding.

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

mb_strtoupper()

Use mb_strtoupper to uppercase letters using Unicode properties in the specified encoding, or the internal encoding when omitted.

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

memory_get_usage()

Read the current number of bytes used by PHP’s memory manager.

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

method_exists()

Check whether a method is defined, including a private method declared on the class itself.

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

microtime()

Read wall-clock Unix time with a microsecond component.

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

min()

Use min on one nonempty array to obtain its smallest value, or pass two or more individual candidates.

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

natcasesort()

Arrange case-insensitive names in natural order, treating unpadded digit runs as numbers while preserving keys.

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

natsort()

Sort strings in place using case-sensitive natural order.

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

next()

Advance the internal array pointer before reading the next value.

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

nl2br()

Insert an HTML line-break element before each newline sequence, preserving the original line endings.

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

number_format()

Format a numeric value as text with grouping and half-up rounding.

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

ord()

Read the unsigned value of the first byte, in the range 0–255.

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

parse_str()

Parse a URL query into the required output variable using form decoding.

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

parse_url()

Split a URL without decoding its percent escapes.

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

password_hash()

Create a salted password hash carrying its algorithm and cost for later verification.

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

password_needs_rehash()

Compare a stored password hash with the requested algorithm and cost settings.

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

password_verify()

Check a candidate password against the stored encoded hash.

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

preg_last_error()

Read preg_last_error immediately after a PCRE operation to get its integer status code.

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

preg_match()

Search for the first match. A match returns 1, absence returns 0, and an execution or compilation error returns false.

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

preg_match_all()

Collect all non-overlapping matches and return their number, zero for none or false on error.

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

preg_quote()

Escape regular-expression metacharacters in a literal fragment before inserting it into a pattern.

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

preg_replace()

Replace matches with text that can refer to numbered capture groups.

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