public static function intValue($value): bool
    {
        if (!is_numeric($value)) {
            return false;
        }

        return strval(intval($value)) == $value;
    }
public static function intValue($value): bool
    {
        if (!is_numeric($value)) {
            return false;
        }

        return strval(intval($value)) == $value;
    }
public static function intValue ( $ value ) : bool { if ( ! is_numeric ( $ value ) ) { return false ; } return strval ( intval ( $ value ) ) == $ value ; }
Checks if value can be cast to an integer without changing value

Passing values include integers, integer strings, and floating-point
numbers with integer values.

@param mixed $value The value

@return bool
Checks if value can be cast to an integer without changing value