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

AppendIterator

Chain Iterator instances in append order without concatenating their arrays.

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

ArgumentCountError

ArgumentCountError extends TypeError.

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

ArrayAccess

Implement offsetExists, offsetGet, offsetSet and offsetUnset to define bracket operations on an object.

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

ArrayIterator

Wrap an array in an object that supports indexed mutation, counting and iterator methods. seek takes a zero-based traversal position even for an associative array and throws OutOfBoundsException outside the available positions. getArrayCopy returns the iterator contents as an array.

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

AssertionError

AssertionError is an Error raised for a false executed assertion when assertion exceptions are enabled.

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

BadMethodCallException

BadMethodCallException specializes BadFunctionCallException for invalid method calls.

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

CachingIterator

Wrap an Iterator with one-element lookahead. hasNext reports whether another item follows the current one, useful for separators without trailing punctuation.

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

CallbackFilterIterator

Filter an Iterator lazily by invoking a callback with the current value, key and inner iterator.

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

Closure

An anonymous or arrow function is a Closure object. fromCallable creates one from a callable in the current visibility scope.

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

Countable

Supply count(): int so the global count function can ask an object for its size.

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

DateInterval

Represent calendar instructions such as one month or a duration such as thirty days.

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

DatePeriod

Iterate recurring dates without building the whole list.

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

DateTime

Represent a mutable date and time.

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

DateTimeImmutable

Keep an original date while deriving adjusted dates.

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

DateTimeZone

Use a named time zone to apply regional offset rules to an instant. getOffset returns signed seconds east of UTC and can differ by season in the same zone.

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

DivisionByZeroError

DivisionByZeroError is an ArithmeticError raised by division or remainder with a zero divisor in PHP 8.4, including intdiv.

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

DomainException

DomainException is a LogicException for a value outside an operation’s defined domain.

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

EmptyIterator

Provide an Iterator with no positions when a routine expects an iterator but has nothing to yield. rewind and next leave it invalid, and foreach executes no iterations.

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

Error

Error is the base of PHP engine error objects such as TypeError and ValueError.

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

Exception

Represent an exceptional application condition with a message, integer code and optional previous Throwable.

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

Fiber

Suspend and resume a cooperative execution context, available since PHP 8.1. start returns the value given to suspend, while the next resume argument becomes the result of suspend inside the fiber.

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

FilterIterator

Subclass this abstract wrapper and implement accept to select items from the current inner Iterator.

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

Generator

Calling a generator function creates a suspended iterator.

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

InfiniteIterator

Cycle a rewindable inner Iterator repeatedly, keeping its keys on every pass.

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