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

Keyword global

Inside a function, bind a local name by reference to the global variable of the same name.

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

Keyword goto

Transfer execution to a case-sensitive label in the same file and execution context.

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

Keyword if

Execute a branch when its condition converts to true.

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

Keyword implements

List the interfaces for which a class provides a contract implementation.

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

Keyword include

Evaluate the named PHP file in the variable scope of the include site.

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

Keyword include_once

Include the file only if it has not already been included in this request, even by ordinary include or require.

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

Keyword insteadof

Resolve a conflict between imported trait methods by selecting one implementation and excluding the named competitors for that method.

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

Keyword interface

Declare a contract without constructing objects of the interface itself.

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

isset: present and not null

isset checks whether a variable or selected element exists and has a value other than null. It does not distinguish a missing key from a key containing null.

Basic · PHP 8.4
PHP

Keyword list

Destructure array elements into variables during assignment.

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

Keyword match

Choose a result by strict identity with the subject.

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

Keyword namespace

Declare a namespace for classes, interfaces, traits, enums, functions and constants in a file.

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

Keyword new

Allocate an instance and call its constructor with the supplied arguments.

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

Keyword print

Write a single expression as text and return the integer 1.

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

Keyword private

Restrict member access to the declaring class.

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

Keyword protected

A protected member can be used inside its class and related classes in its inheritance hierarchy.

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

Keyword public

A public member is accessible from outside its class.

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

Keyword readonly

A typed readonly property permits initial assignment and prevents subsequent modification of the property itself.

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

Keyword require

Evaluate a required PHP file in the current inclusion scope and use its returned value.

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

Keyword require_once

Require a file only on its first inclusion in the request.

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

Keyword return

End the current function and provide its result to the caller.

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

Keyword switch

Evaluate the subject once and search case labels using loose equality.

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

Keyword throw

Raise an object implementing Throwable and transfer control to a matching handler or up the call stack.

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

Keyword trait

Package methods or other members for horizontal reuse.

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