Array Comparison

While comparing two array what is the difference between === and ==?

Questions by tallman07

Showing Answers 1 - 10 of 10 Answers

prembaj

  • Sep 25th, 2010
 

=== compare datatype as well as value while == compares only the value

Ex: $a=5;
$b='5';
if($a==$b)
then you will get true
but
if($a===$b)
then you will get false.

  Was this answer useful?  Yes

abc

  • Sep 12th, 2011
 

use ==

  Was this answer useful?  Yes

Give your answer:

If you think the above answer is not correct, Please select a reason and add your answer below.

 

Related Answered Questions

 

Related Open Questions