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

strval()

Obtain the string representation for output. true becomes "1", while false and null both become the empty string.

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

substr()

Extract a byte slice. Negative offset counts from the end and negative length excludes bytes from the far end.

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

substr_count()

Count nonoverlapping, case-sensitive occurrences within a byte window.

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

substr_replace()

Replace a byte range selected by position, not by matching text.

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

trim()

Strip matching bytes at both ends, leaving internal characters untouched.

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

uasort()

Use a comparator on values while keeping each original key.

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

ucfirst()

Uppercase the first byte if it is an ASCII lowercase letter.

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

ucwords()

Uppercase an ASCII lowercase letter at the beginning or immediately after a listed separator.

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

uksort()

Sort a map by passing keys to an integer comparator.

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

unserialize()

Reconstruct a value from trusted PHP serialization data.

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

urldecode()

Decode form-style text by turning plus into a space and percent escapes into bytes. %2B represents an actual plus.

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

urlencode()

Encode one form or query value using application/x-www-form-urlencoded rules.

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

usort()

Sort values by an integer comparator and replace every original key with a consecutive index.

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

var_dump()

Write diagnostic information about one or more values, including their types and string lengths in bytes.

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

var_export()

Render a value as PHP source syntax.

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

Keyword abstract

An abstract class can supply shared implementations while leaving abstract methods without bodies.

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

Keyword as

In foreach, as binds each item to a value variable and optionally a key variable.

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

Keyword break

Leave the nearest loop or switch immediately.

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

Keyword case

Mark a possible entry point in switch.

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

Keyword catch

Handle a thrown object whose class matches the first applicable catch clause.

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

Keyword class

Declare an object type with its own properties and methods.

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

Keyword clone

Create a new object using a shallow property copy and then invoke __clone() if defined.

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

Keyword const

Declare a named constant using a constant expression, without a dollar sign.

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

Keyword continue

Skip the rest of the current loop iteration.

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