I searched on StackOverflow and Google and I can\'t find the answer to this question:
Should we always use the triple equal in PHP for validation?
For exampl
It depends on what you want to do. Given that from forms, data comes as strings, == is handy because it can compare, for example, strings that represent numbers with numbers with no additional type casting.
==
if ($_GET['amount'] == 10) { //... }
So no, it's not better to always use ===.
===