I am brand new to PHP and am learning on a short course alongside others.
I have been given the following two echo statements to try.
Underneath each statement I have written an explanation to myself for how it works. However, I am not getting the results I expected for the first one. Can anyone help explain where I may be going wrong? Thank you.
echo ($w === 7 && $y == true) . "<br/>";
//echo if w is identical to 7 and y is true
//w is 7 and y is true
//w is identical to 7 and y is identical to true
//RESULT:
//
*(this is returning as blank/false and I was expecting it to be true)*
**echo ($w == 8 || $z == false) . "<br/>";**
//echo if w is identical to 8 or z is false
//w is 7 and z is false
////w is not identical to 8 but z is identical to false
//RESULT:
// 1