Below is the order of precedence
* / % Highest Precedence
+ - .
< <= > >=
=== !==
&&
| |
And
XOR
OR Lowest Precedence
quite confusing ryte?well don't worry,it is just ur first step to know the order of precedence.
N/NOTE:for this symbol ===,i actually know that that symbol is use when to check if one value has the same as another AND are of the same type.here is the example:
$number = 11;
$text = 'eleven';
if ($number === $text) {
print("Same");
}
else {
print("Not the same");
}
Since one is text and the other is a number, the answer is "no", or false.Luckily, we will not use this operator quite much!so that all for today!
TQ!
No comments:
Post a Comment