0
5===5.0
Will be output
2 Respuestas
+ 2
go to sololearn playground and create a php script.
write the code, execute it. what do you observe? why do you think this result occurs?
mind that Q&A/ Discuss is not a quiz. if you need help with your code or would like an explanation, ask directly and precisely.
0
K.v BABU === is "strict equality" operator.
== is "loose equality" operator.
Loose equality is true if VALUES are equal after doing any necessary type conversion.
Strict equality is true ONLY IF both VALUE and DATA TYPE are the same.
PHP has separate data types for integers and floating point numbers.