Query: splint
OS: php
Section: 3
Format: Original Unix Latex Style Formatted with HTML and a Horizontal Scroll Bar
SPLINT(3) 1 SPLINT(3) The SplInt classINTRODUCTIONThe SplInt class is used to enforce strong typing of the integer type.CLASS SYNOPSISSplInt SplIntextends SplType Constants o const integer$SplInt::__default0 Inherited methods o SplType::__construct ([mixed $initial_value], [bool $strict])PREDEFINED CONSTANTSo SplInt::__default -EXAMPLESExample #1 SplInt usage example <?php $int = new SplInt(94); try { $int = 'Try to cast a string value for fun'; } catch (UnexpectedValueException $uve) { echo $uve->getMessage() . PHP_EOL; } echo $int . PHP_EOL; ?> The above example will output: Value not an integer 94 PHP Documentation Group SPLINT(3)
Related Man Pages |
---|
reflectionclass(3) - php |
apc_inc(3) - php |
judy(3) - php |
reflectionproperty(3) - php |
apc_cas(3) - php |
Similar Topics in the Unix Linux Community |
---|
splintgui 0.3 (Default branch) |