Boolean data and writing in PHP. This data is the data type that has only two values: true or true and false or incorrect. Data can also be used in a boolean logic operations such as looping and looping condition. boolean writing only two values that is True and false writing of true or false. Boolean data is non case sensitive so it can be written as true, True or TRUE.