Problem with bool value output
益伦
益伦 2017-10-11 20:37:54
0
1
1546

<?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?

益伦
益伦

reply all(1)
nearest

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 It turns out that false is not output, thank you very much
    益伦 author 2017-10-11 21:40:37
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template