SplBool::__construct

(No version information available, might be only in CVS)

SplBool::__constructConstructs a bool object type

Description

SplBool::__construct ( void )

This constructs a new object of type bool.

Parameters

input

The input parameter accepts a bool.

strict

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

Return Values

No value is returned.

Examples

Example #1 SplBool::__construct() example

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

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

The above example will output:

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


    

 

 

Home || Web Directroy || Web Designing || Get a Domain Name || Host your web site || Free Blogs || Free Tutorial || Free E-cards || Free GuestBook || Email