👋 Hello! I'm Alphonsio the robot. Ask me a question, I'll try to answer.

php boolean

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;

More