Skip to content

Latest commit

 

History

History
49 lines (33 loc) · 1.13 KB

SplType.construct.md

File metadata and controls

49 lines (33 loc) · 1.13 KB

SplType::__construct

(PHP 7, PHP 8) SplType::__construct — Creates a new value of some type

SplType::__construct ([ mixed $initial_value [, bool $strict ]] )

Type and default value depends on the extension class.

Whether to set the object's sctrictness.

A new Typed SplType

Throws an UnexpectedValueException if incompatible type is given.

Note: Nothing to report yet