1.2.1132. Similar Integers¶
This analysis reports all integer values that are expressed in different format.
<?php
// Three ways to write 10 (more available)
$a = 10;
$b = 012;
$x = 0xA;
// 7 is expressed in one way only
$d = 7;
$d = 7;
// Four ways to write 11 (more available)
$a = 11;
$b = 013;
$x = 0xB;
$x = -+-11;
// Expressions are not counted
?>
1.2.1132.1. Connex PHP features¶
1.2.1132.1.1. Specs¶
Short name |
Type/SimilarIntegers |
Rulesets |
|
Exakat since |
1.9.0 |
PHP Version |
All |
Severity |
Minor |
Time To Fix |
Quick (30 mins) |
Precision |
Very high |
Available in |