April 2026
Intermediate
1009 pages
34h 15m
English
Functions are the easiest way to bundle frequently used functionality in programming.
Functions are, simply put, collections of statements. You either write these collections yourself, or they are supplied by PHP or one of the infinite number of PHP extensions.
A language construct is quite similar to a function specified by PHP. However, you can omit the round brackets typical for functions in a language construct.
Functions are easy to use. Two steps are necessary:
You must define the function (also known as declaring it). This is not necessary with a PHP function; it is already defined there.
You must then call the function, as it is only executed when it is called.
To define a function, ...
Read now
Unlock full access