Question #68   Submitted by Answiki on 06/14/2020 at 06:38:17 PM UTC

How to create boolean variables in PHP?

Answer   Submitted by Answiki on 08/25/2022 at 07:44:25 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, they must be written upper case.

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

7 events in history
Answer by Answiki on 08/25/2022 at 07:44:25 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, they must be written upper case.

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

Answer by Answiki on 08/25/2022 at 07:41:37 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;

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.