+ 1

Can we use any other data type like boolean or float in case of int?

Suggest me a Code for such!

17th Jul 2016, 1:16 AM
Vani Prathyusha
Vani Prathyusha - avatar
1 Answer
+ 3
php, by default. has a weak type-checking Mode. what means a var can be of any Type without declaration. $someValue = "Hello World"; //will be string $someValue = 10; //will be int and so on, and so on now with php7 at the First time, strict variable declarations is introduced.
21st Jul 2016, 10:06 PM
Steven - avatar