1.2.534. Hexadecimal Glossary¶
This rule lists of all the integer values, written in the hexadecimal format.
The hexadecimal syntax is a zero, followed by x
and then, up to 16 hexadecimal digits: 0x[0-9a-z]+
. The format is case insensitive.
Up to 16 characters after the x gives an integer. From 17 to 243, it gives a float. Beyond, it returns infinite INF
.
<?php
$hexadecimal = 0x10;
$anotherHexadecimal = 0XAF;
?>
See also https://www.php.net/manual/en/language.types.integer.php#language.types.integer.syntax.
1.2.534.1. Connex PHP features¶
1.2.534.1.1. Specs¶
Short name |
Type/Hexadecimal |
Rulesets |
|
Exakat since |
0.8.4 |
PHP Version |
All |
Severity |
|
Time To Fix |
|
Precision |
Very high |
Related rule |
|
Available in |