SplBool
SplString
SplBool
PHP Manual

# SplBool::__construct

(PECL spl_types >= 0.1.0)

SplBool::__construct — Constructs a bool object type

### Descrição

SplBool::__construct ( void )

This constructs a new object of type bool.

### Parâmetros

`input`

  The `input` parameter accepts a bool .

`strict`

  A boolean variable to indicate wether the object's strictness should be set or not.

### Valor Retornado

Não há valor retornado.

### Exemplos

Exemplo #1 SplBool::__construct() example

`<?php
$one = new SplBool(true);
$two = new SplBool(1);
var_dump($one);
var_dump($two);
?>`

O exemplo acima irá imprimir:

    object(SplBool)#1 (1) {
      ["__default"]=>
      bool(true)
    }
    object(SplBool)#1 (1) {
      ["__default"]=>
      bool(true)
    }

SplBool
SplString
SplBool
PHP Manual