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