php man page for splbool

Query: splbool

OS: php

Section: 3

Format: Original Unix Latex Style Formatted with HTML and a Horizontal Scroll Bar

SPLBOOL(3)								 1								SPLBOOL(3)

The SplBool class

INTRODUCTION
The SplBool class is used to enforce strong typing of the bool type.
CLASS SYNOPSIS
SplBool SplBoolextends SplEnum Constants o const boolean$SplBool::__defaultfalse o const boolean$SplBool::falsefalse o const boolean$SplBool::truetrue Inherited methods o public array SplEnum::getConstList ([bool $include_default = false])
PREDEFINED CONSTANTS
o SplBool::__default - o SplBool::false - o SplBool::true -
EXAMPLES
Example #1 SplBool usage example <?php $true = new SplBool(true); if ($true) { echo "TRUE "; } $false = new SplBool; if ($false) { echo "FALSE "; } ?> The above example will output: TRUE PHP Documentation Group SPLBOOL(3)
Related Man Pages
isset(3) - php
solrclient(3) - php
class_alias(3) - php
is_float(3) - php
is_string(3) - php
Similar Topics in the Unix Linux Community
UNIX.COM 2017 Year End Summary
Status of UNIX.COM Forum Transformation
The Order of the Wizard's Hat - Lifetime Achievement Award 2019 - Congrats to Don Cragun
The Order of the Wizard's Hat - Lifetime Achievement Award 2019 - Congrats to Wolf Machowitsch
Please Welcome Nicki Paul to the Moderator Team!