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.