SplType::__construct

(PECL spl_types >= 0.1.0)

SplType::__constructCreates a new value of some type

˵��

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

Warning

��������δ��д�ĵ������в����б�

����

initial_value

Type and default value depends on the extension class.

strict

Whether to set the object's sctrictness.

�����쳣

Throws an UnexpectedValueException if incompatible type is given.