Can someone help me understand these operators.
Manual page breaks down just about anything you could possibly want to know.
$i = 10;
$t = 5+5;
$i == $t TRUE
$i === $t FALSE
That is an incorrect example
$a = 10;
$b = 5+5;
$c = '5+5';
var_dump($a == $b);
var_dump($a === $b);
var_dump($b === $c);
string '5+5' (length=3)
You can get the explanation with examples at the following link
in short what all others are trying to explain you is '==' only checks the contents of both the operands for equality and '===' compares for types (of both operands) too.
The difference between both of them is that :
"==" -> It only checks for equality without checking the datatype
"===" -> It checks for equality and also both the variables should be of same datatype
Edited 7 Years Ago
by Ezzaral: Snipped url. Please restrict personal links to your user signature.
As a small business owner, it is difficult to understand where you are on the search engine result pages. SEO is complicated and it is constantly changing. Every company wants ...
hi can any one help me i search for a solution for about one weak and i can't find it :
$dbhandle = mysqli_connect('localhost', 'root', 'toor', 'helmi');
mysqli_query($dbhandle,"SET character_set_results ...
I developed Desktop application in C# .Net for client. client purchased software and installed it one than more system without my permission. How to restict him to not ...