0

5===5.0

Will be output

23rd Jan 2025, 1:05 AM
K.v BABU
K.v BABU - avatar
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.
23rd Jan 2025, 12:04 PM
Lisa
Lisa - avatar
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.
24th Jan 2025, 5:25 AM
Shardis Wolfe