As of PHP 7, we can specify the type of the returned value for the function we declare. The return type can be string, int, float, bool, array, callable, self (when defining methods only), parent (when defining methods only), Closure, the name of a class or the name of an interface.
0
0
Related videos
Preparing
To view the site materials you should be more than or equal to 18 years old