+ 1
Can we use any other data type like boolean or float in case of int?
Suggest me a Code for such!
1 Antwort
+ 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.