filmov
tv
Data type in PHP function and enable strict mode in PHP

Показать описание
In this video I explained about strict mode and declaring data type in PHP function.
To enable strict mode we use declare() function.
Eg : declare(strict_types=1);//to enable strict mode
As PHP is a loosely typed language we don't need to use data type but in function their is an exception . It is not necessary to declare data type in function parameter. If you want to declare data type you can, that will increase the performance.
In this video I explained all the things in deatail.