integer number php code example
Example 1: PHP Numbers
<?php
$x = 5985;
var_dump(is_int($x));
$x = 59.85;
var_dump(is_int($x));
?>
Example 2: php "?int"
// ? means $count can be NULL or integer, maybe PHP >=7.4
private ?int $count
<?php
$x = 5985;
var_dump(is_int($x));
$x = 59.85;
var_dump(is_int($x));
?>
// ? means $count can be NULL or integer, maybe PHP >=7.4
private ?int $count