PHP Reference

PHP – echo Keyword

The PHP echo keyword is used to output text, and can output multiple strings separated by commas.

PHP Reference

PHP – else Keyword

The PHP else keyword specifies a block of code which should run when the condition of an if statement is not met.

PHP Reference

PHP – elseif Keyword

The PHP elseif keyword tests a new condition if the condition of a previous if or elseif statement was not met.

PHP Reference

PHP – empty Keyword

The PHP empty keyword acts as a function which returns true if a variable does not exist, or if its value is considered empty.

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.

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