Question #69   Submitted by Answiki on 06/14/2020 at 06:42:30 PM UTC

How to specify boolean variables in PHP?

Answer   Submitted by Answiki on 10/12/2021 at 05:22:20 PM UTC

In PHP, to create a boolean variables, use the constants TRUE or FALSE:

<?php
$myBoolean = TRUE;
Note that boolean constants in PHP are case-insensitive:

// Specify a boolean literal set to FALSE
$myBoolean = FALSE;

5 events in history
Answer by Answiki on 10/12/2021 at 05:22:20 PM

In PHP, to create a boolean variables, use the constants TRUE or FALSE:

<?php
$myBoolean = TRUE;
Note that boolean constants in PHP are case-insensitive:

// Specify a boolean literal set to FALSE
$myBoolean = FALSE;

Question by Answiki 06/14/2020 at 06:42:43 PM
How to specify boolean literals in PHP?
Question by Answiki 06/14/2020 at 06:42:30 PM
How to specify boolean variables in PHP?
Answer by Answiki on 06/14/2020 at 06:42:15 PM

In PHP, to create a boolean variables, use the constants TRUE or FALSE:

<?php
$myBoolean = TRUE;
Note that boolean constants in PHP are case-insensitive:

// Specify a boolean literal set to FALSE
$myBoolean = fAlSe;

Question by Answiki 06/14/2020 at 06:38:17 PM
How to create boolean variables in PHP?
# ID Query URL Count

Icons proudly provided by Friconix.