Comparing Values in PHP

Category: PHP

What is the difference between == and ===in PHP? When you have two equal signs in PHP it usually means you’re checking if the two variables have the same value. So as you can see below we have a variable called $ageOne = 10; and another variable called $ageTwo = ‘10’.

Get the latest Laravel/PHP jobs, events and curated articles straight to your inbox, once a week

Community Partners