Question #80
How to create boolean variables in PHP?
Merged questions
Answer
In PHP, to create a boolean variables, use the constants TRUE or FALSE:
Note that boolean constants in PHP are case-insensitive:<?php
$myBoolean = TRUE;
// Specify a boolean literal set to FALSE
$myBoolean = fAlSe;
4 events in history
Question by Alphonsio 06/14/2020 at 06:42:43 PM
How to specify boolean literals in PHP?
Question by Alphonsio 06/14/2020 at 06:42:30 PM
How to specify boolean variables in PHP?
Answer by Alphonsio 06/14/2020 at 06:42:15 PM
In PHP, to create a boolean variables, use the constants TRUE or FALSE:
Note that boolean constants in PHP are case-insensitive:<?php
$myBoolean = TRUE;
// Specify a boolean literal set to FALSE
$myBoolean = fAlSe;
Question by Alphonsio 06/14/2020 at 06:38:17 PM
How to create boolean variables in PHP?
# | ID | Query | URL | Count |
---|
Icons proudly provided by Friconix.