+ 1

What is the work of === (triple equal ) in php operators?

6th Jan 2018, 1:20 PM
Aishwarya Agarwal
Aishwarya Agarwal - avatar
4 Réponses
+ 7
it checks if two values are equal and have the same data type👌
6th Jan 2018, 1:37 PM
Botol
Botol - avatar
+ 1
Got it , thanks! :)
6th Jan 2018, 1:41 PM
Aishwarya Agarwal
Aishwarya Agarwal - avatar
+ 1
=== is the operator called "are identical". Identical means of the same value as well as the same type! 9 == '9' is true but 9 === '9' is false
6th Jan 2018, 1:51 PM
Naveen Maurya
Naveen Maurya - avatar
0
why is 25 === "25" false?
6th Jan 2018, 1:39 PM
Aishwarya Agarwal
Aishwarya Agarwal - avatar