1.2.604. Is An Extension Constant¶
Mark a constant if it belongs to a known extension.
<?php
// JSON_HEX_AMP is a constant from ext/json
echo json_encode($object, JSON_HEX_AMP);
// JSON_HEX_AMP is a constant from ext/json
echo json_encode($object, JSON_HOAX_AMP);
?>
See also Supported PHP Extensions.
1.2.604.1. Specs¶
Short name |
Constants/IsExtConstant |
Rulesets |
|
Exakat since |
0.8.4 |
PHP Version |
All |
Severity |
|
Time To Fix |
|
Precision |
Very high |
Features |
constant |
Available in |