PHP Boolean

Rumman Ansari   Software Engineer   2020-02-01   5478 Share
☰ Table of Contents

Table of Content:


A Boolean represents two possible states: TRUE or FALSE.

Syntax:



$x = true;
$y = false;


Booleans are often used in conditional testing. You will learn more about conditional testing in a later chapter of this tutorial.