PHP Reference

PHP – extends Keyword

The PHP extends keyword is used to derive a class from another class, and therefore inherits all the properties of the class that it is derived from.

PHP Reference

PHP – final Keyword

The PHP final keyword is used to prevent a class from being inherited and to prevents inherited methods from being overridden.

PHP Reference

PHP – fn Keyword

The PHP fn keyword is used to create arrow functions which have access to all variables from the scope in which they were created.

PHP Reference

PHP – for Keyword

The PHP for keyword is used to create a for loop, which loops through a block of code a specified number of times.

PHP Reference

PHP – foreach Keyword

The PHP foreach keyword is used to create foreach loops, which loops through a block of code for each element in an array.

PHP Reference

PHP – global Keyword

The PHP global keyword imports variables from the global scope into the local scope of a function.

PHP Reference

PHP – if Keyword

The PHP if keyword is used to create an if conditional. The elseif and else keywords can then be used to run code when the if condition is not met.

PHP Reference

PHP – implements Keyword

The PHP implements keyword is used to declare that a class must have the methods described in the specified interface (called polymorphism).

PHP Reference

PHP – include Keyword

The PHP include keyword is used to embed PHP code from another file. If the file is not found, a warning is shown and the program continues to run.

PHP Reference

PHP – include_once Keyword

The PHP include_once keyword is used to embed PHP code from another file. If the file is not found, a warning is shown and the program continues to run.

PHP Reference

PHP – instanceof Keyword

The PHP instanceof keyword is used to check if an object belongs to a class, and returns true if the object is an instance of the class or false if not.

PHP Reference

PHP – insteadof Keyword

The PHP insteadof keyword allows you to select from which trait a method should be taken if more than one trait has a method with the same name.

PHP Reference

PHP – interface Keyword

The PHP interface keyword is used to create interfaces, which is a structure which defines a list of methods that must exist in a class.

HTML
CSS
JavaScript
jQuery
PHP
SQL
WordPress
HTML
CSS
JavaScript
jQuery
PHP
SQL
WordPress

Why 1SMARTchicken?

This site was built and is maintained to benefit my autistic son.
See More →

My Son's Name is Johnny

He was diagnosed as autistic quite late, at age four...
His story

Buy Me a Coffee

Thanks for your support!

1SMARTchicken Icon