search

Home  >  Q&A  >  body text

Problem with bool value output

<?php

//In fact, it can be lowercase, but it is difficult to distinguish, so we stipulate that it is usually uppercase

define('xiaoxie',true);

echo xiaoxie;


$hello=flase;

echo $hello;


?> ;


Why the output result of the previous code is 1 and

The output result of the later code is flase, shouldn't it be 0?

益伦益伦2712 days ago1601

reply all(1)I'll reply

  • nearest

    nearest2017-10-11 21:33:40

    First of all, false is misspelled.

    Secondly, false prints out as empty and will not output 0.

    Finally, you can only print out a 1.

    reply
    0
  • 益伦

    It turns out that false is not output, thank you very much

    益伦 · 2017-10-11 21:40:37
  • Cancelreply