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