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

InvalidArgumentException

InvalidArgumentException is a LogicException that application code can throw when an argument has an inappropriate type.

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

Iterator

Define a cursor using rewind, valid, current, key and next. foreach rewinds at the start, checks valid before reading and advances after each element. valid must track position independently of the current value so a stored null or false does not terminate traversal.

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

IteratorAggregate

Give a collection an external cursor by implementing getIterator(): Traversable.

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

IteratorIterator

Adapt a Traversable source to the Iterator cursor interface.

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

JsonException

Catch failures from JSON operations using JSON_THROW_ON_ERROR.

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

JsonSerializable

Define the value that json_encode should serialize for an object.

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

LimitIterator

Expose a window of an Iterator by zero-based traversal position, preserving original keys.

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

LogicException

LogicException represents a defect in the program’s use of an object or an invariant violation.

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

MultipleIterator

Advance several iterators together in rows.

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

OutOfBoundsException

OutOfBoundsException extends RuntimeException for an invalid index or key.

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

RecursiveArrayIterator

Expose nested arrays through hasChildren and getChildren, one level at a time.

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

RecursiveIteratorIterator

Walk a RecursiveIterator tree without writing a recursive loop.

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

ReflectionClass

Inspect a class and create instances with constructor arguments. newInstanceArgs runs the constructor with the supplied arguments, while isInstantiable lets tools reject interfaces or abstract classes first.

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

ReflectionFunction

Inspect or invoke a named function or Closure.

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

ReflectionMethod

Inspect a method and invoke it on a compatible receiver.

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

ReflectionProperty

Read a property declaration and its value on an object.

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

RegexIterator

Select iterated values with a PCRE pattern.

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

RuntimeException

RuntimeException describes a failure discoverable only while the program runs, such as an unexpectedly exhausted input stream.

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

SplDoublyLinkedList

Maintain a list with insertion and removal at both ends. push and pop operate at the tail; unshift and shift operate at the head. bottom and top inspect the ends without removing them.

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

SplFixedArray

Allocate a fixed number of positions indexed from zero.

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

SplHeap

Extend the abstract heap and compare pairs to define priority.

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

SplMaxHeap

Keep the greatest value at the top under the default comparison.

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

SplMinHeap

Give the smallest value highest extraction priority.

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

SplObjectStorage

Associate data with object identities and keep a strong reference to each stored key.

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