Home  • Courses • Software Engineering
Boolean: A boolean variable represent truth, supporting only two values: TRUE/true or FALSE/false. Alternatively, you can use 0 (zero) to represent FALSE, and any nonzero value to represent TRUE. example: $alive=false; echo $alive; // output false $alive=1; echo $alive; //output true $alive=-1; echo $alive; //output true $alive=5; echo $alive; //output true $alive=0; echo $alive; //output true

Comments 2


last one Answare "output false"
Zero and false with out true
Copyright © 2024. Powered by Intellect Software Ltd