Back to Browse

Using equality operators in PHP: the difference between == and ===

2.5K views
Jul 9, 2019
6:41

Full PHP course: ➤ https://davehollingworth.net/phpy When you want to see if two values are equal in PHP, you can use the loose comparison operator, ==, or the strict comparison operator. ===. In this video we'll learn the difference between the two and look at an example of when to use which one. Resources shown in the video: PHP comparison operators: https://www.php.net/manual/en/language.operators.comparison.php PHP type comparison tables: https://www.php.net/manual/en/types.comparisons.php PHP strpos: https://php.net/strpos Source code: https://gist.github.com/daveh/b6e01183f53e73c7142c7d5bd3da8fb3

Download

1 formats

Video Formats

360pmp48.2 MB

Right-click 'Download' and select 'Save Link As' if the file opens in a new tab.

Using equality operators in PHP: the difference between == and === | NatokHD