Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PHP

php


class Number {
  public function __construct(
    private int|float $number
  ) {}
}

new Number('NaN'); // TypeError

Source by www.php.net #
 
PREVIOUS NEXT
Tagged: #php
ADD COMMENT
Topic
Name
6+3 =