declare
suggest changedeclare is used to set an execution directive for a block of code.
The following directives are recognized:
For instance, set ticks to 1:
declare(ticks=1);
To enable strict type mode, use strict_types. It must be the first statement in the file, or PHP raises a fatal error:
declare(strict_types=1);
Found a mistake? Have a question or improvement idea?
Let me know.
Table Of Contents