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

spl_autoload_register()

Register a loader that receives an unresolved class name without a leading backslash.

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

sprintf()

Build and return formatted text without printing it.

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

sscanf()

Read fields from text according to a format.

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

strcasecmp()

Compare two byte strings without ASCII letter case, returning a negative integer, zero or a positive integer.

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

strcmp()

Compare two strings lexicographically by bytes with case sensitivity.

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

str_contains()

Test whether a byte substring appears anywhere, with case sensitivity and no numeric offset result.

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

str_ends_with()

Test a case-sensitive byte suffix without extracting it.

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

stripos()

Find the first matching byte position while ignoring ASCII letter case.

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

strip_tags()

Remove HTML tags while retaining the text between them.

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

str_ireplace()

Replace literal matches without case sensitivity for ASCII letters.

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

strlen: a string length in bytes

strlen counts the bytes of a PHP string, not the characters visible on screen. This measures data size, but does not always measure text length for a user.

Basic · PHP 8.4
PHP

strncasecmp()

Compare at most length bytes without ASCII letter case.

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

strncmp()

Compare at most length bytes with case sensitivity and use the sign of the result.

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

str_pad()

Pad to a minimum byte length on the left, right or both sides.

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

strpos()

Locate the first case-sensitive byte match or return false.

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

str_repeat()

Concatenate the input exactly times times.

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

str_replace()

Replace case-sensitive literal strings in search-array order.

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

strrev()

Return the bytes in reverse order.

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

strripos()

Find the final match position ignoring ASCII case.

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

strrpos()

Return the last byte position of a case-sensitive literal match, or false if absent.

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

str_split()

Split into chunks of a positive number of bytes.

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

str_starts_with()

Check for an exact case-sensitive byte prefix at the first position.

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

strtolower()

Lowercase ASCII letters throughout the string, keeping all other bytes.

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

strtoupper()

Uppercase ASCII lowercase letters across all positions.

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