Strict Type declaration were added in PHP 7
To enabled strict mode in php write this statement: declare(strict_types=1);
The statement directive enables strict mode. In strict mode, only a variable of exact type of the “type declaration” will be accepted, or a TypeError will be thrown.
By default PHP works in weak mode.
To know it in better way see this lecture and access my playlist.
LIKE SHAR AND SUBSCRIBE if you find it useful.
Download
0 formats
No download links available.
Lec-7 part 4: strict mode for function in php in hindi | NatokHD