downloads | documentation | faq | getting help | mailing lists | licenses | wiki | reporting bugs | php.net sites | links | conferences | my php.net

search for in the

SplString> <SplBool
Last updated: Fri, 20 May 2011

view this page in

SplBool::__construct

(PECL spl_types >= 0.1.0)

SplBool::__constructConstructs a bool object type

Descripción

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 whether the object's strictness should be set or not.

Valores devueltos

No devuelve ningún valor.

Ejemplos

Example #1 SplBool::__construct() example

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

var_dump($one);
var_dump($two);
?>

El resultado del ejemplo sería:

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



add a note add a note User Contributed Notes SplBool::__construct
There are no user contributed notes for this page.

 
show source | credits | stats | sitemap | contact | advertising | mirror sites