PHP’s === Operator enables you to compare or test variables for both equality and type. Refer below for example.
- $a = '10';
- $b = 10;
- //Returns true since both variable contains the same value..
- $res = ($str==$int);
- //Returns false since the two variables are not of the same type..
- $res = ($a===$b);
- ?>
mathhoang
No comments:
Post a Comment