PHP PHP Basics Daily Exercise Program True PHP

Abdullah Al Faruk
Abdullah Al Faruk
Pro Student 3,270 Points

How to do that? I am confused

Help me

$a = 5;
//Place your code below this comment
$isBoolean = true;
$isIdentical = 5;

if($a = $isIdentical){


1 Answer


= Means assign. So $a = 3 would set the value of $a to 3.

== Means is equal value. So $a == 3 would be true if $a had the same value as 3, even if it was a different type. "3"==3 is true.

=== Means has the same value and is the same type. The two values are IDENTICAL.