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

Published: 09 July 2019
on channel: Dave Hollingworth
2,461
44

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/languag...
PHP type comparison tables: https://www.php.net/manual/en/types.c...
PHP strpos: https://php.net/strpos
Source code: https://gist.github.com/daveh/b6e0118...


On this page of the site you can watch the video online Using equality operators in PHP: the difference between == and === with a duration of hours minute second in good quality, which was uploaded by the user Dave Hollingworth 09 July 2019, share the link with friends and acquaintances, this video has already been watched 2,461 times on youtube and it was liked by 44 viewers. Enjoy your viewing!