(PECL spl_types >= 0.1.0)
SplBool::__construct — Constructs a bool object type
This constructs a new object of type bool.
The input parameter accepts a bool.
A boolean variable to indicate wether the object's strictness should be set or not.
값을 반환하지 않습니다.
Example #1 SplBool::__construct() example
<?php
$one = new SplBool(true);
$two = new SplBool(1);
var_dump($one);
var_dump($two);
?>
위 예제의 출력:
object(SplBool)#1 (1) { ["__default"]=> bool(true) } object(SplBool)#1 (1) { ["__default"]=> bool(true) }