Home  >  Q&A  >  body text

I can’t figure out why the result is false 4.

<?php
$x = false;
$y = 3;
if($x & $y ){
echo 'true';
}else{
echo 'False';
}
//Look at the result again
echo $y;
?>


小周小周2294 days ago1198

reply all(1)I'll reply

  • 哎呀

    哎呀2018-07-27 17:25:28

    Distinguish the difference between & and &&

    reply
    0
  • Cancelreply