answersLogoWhite

0


Consider

$var1== $var2 : This means var1 and var2 must be equal in values
$var1=10;
$var2=10;

so $var1==$var2 is true but if $var2=9; then the above statement will be false

now
$var1===$var2

this will check values and their type i.e both should be integer and value should be 10 only then it will return true.

$var2='dummy';
$var1 === $var2 it will return false.

User Avatar

Wiki User

15y ago

What else can I help you with?

Related Questions

What does the increment operator do in PHP?

The incremental operator increases the variable by 1. See the example below: <?php $number = 10; $number++; echo $number; // outputs 11 ?>


What is use of dot in php?

The dot (.) operator in PHP is used to concatenate strings. For instance:$start = "Big";$end = "Bird";echo $start . ' ' . $end;This code would produce the output:Big Bird


What is operator in php?

An operator merges two different values and outputs a new expression based on the inputted values.


How do you use equals equals equals operator in javascript?

'1' will return false because one variable is an integer and the other is a string.


What is the use of a question mark in php?

It is used to tell the sever to use the PHP parser. To begin php you must use <?php, and to end it, it is ?>.


How do you use PHP in HTML?

You can't use PHP in an HTML document, but you can use HTML in PHP script.


Why there is no boolean operator in php?

There are several boolean operators in PHP. I'm not able to provide you with it's full list, but here are some of the most used ones: && - AND - OR ! - NOT


Why should you use PHP and not JSP?

Firstly, this is wrong question. The right one would be WHEN should you use PHP, not JSP? or, WHEN should you use PHP and WHEN JSP?


How do you use XML in PHP?

PHP 5 has a XML parser called SimpleXML that you could use.


How do you create a web mail script using PHP?

You can use phpMailer() Or, you can use mail() PHP function to send emails via PHP script.


What is a PHP certificate?

PHP certification is received after doing some sort of PHP course, there are many out there to do. You can use them in your CV to help you get a job in PHP.


Where could one find information about how to use PHP 5?

You can find information about how to use PHP 5 on the official PHP website, PHP.net, through the PHP 5 documentation section. Additionally, online tutorials, forums, and books dedicated to PHP programming are great resources to learn how to use PHP 5 effectively.