SplType::__construct

(PECL spl_types >= 0.1.0)
Creates a new value of some type
SplType::__construct ([ mixed $initial_value [, bool $strict ]] )
Parameters:
initial_value

Type and default value depends on the extension class.

strict

Whether to set the object's sctrictness.

This function is currently not documented; only its argument list is available.

Exception:

Throws an UnexpectedValueException if incompatible type is given.

doc_php
2025-01-10 15:47:30
Comments
Leave a Comment

Please login to continue.