Add new comment
Want to support HowtoForge? Become a subscriber!
|
yes it is very useful operator when you want to match the data types as well as values e.g <?php $value1 = 3; $value2 = "3"; if($value1 === $value2) echo "matched"; else echo "not matched"; ?> You will get the NOT MATCHED output because value1 has 3 as integer value on the other hand 3 is string in value2 variable. So whenever you need to match data type as well as value you should use === operator.
Reply |



Recent comments
4 hours 41 min ago
8 hours 24 min ago
8 hours 34 min ago
8 hours 41 min ago
10 hours 26 min ago
14 hours 24 min ago
1 day 2 hours ago
2 days 11 hours ago
2 days 15 hours ago
2 days 15 hours ago