Source: medium.com

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’.
Newsletter

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

Glimpse streamlines Laravel development by seamlessly deploying GitHub pull requests to preview environments with the help of Laravel Forge. Glimpse streamlines Laravel development by seamlessly deploying GitHub pull requests to preview environments with the help of Laravel Forge.
Fathom Analytics | Fast, simple and privacy-focused website analytics. Fathom Analytics | Fast, simple and privacy-focused website analytics.
Shirts painstakingly handcrafted by under-caffeinated developers. Shirts painstakingly handcrafted by under-caffeinated developers.
Community Partners