.. _type-hexadecimalstring: .. _hexadecimal-in-string: Hexadecimal In String +++++++++++++++++++++ Mark strings that may be confused with hexadecimal. Until PHP 7.0, PHP recognizes hexadecimal numbers inside strings, and converts them accordingly. PHP 7.0 and until 7.1, converts the string to 0, silently. PHP 7.1 and later, emits a 'A non-numeric value encountered' warning, and convert the string to 0. .. code-block:: php See also `Integer Syntax `_. Connex PHP features ------------------- + `hexadecimal `_ Specs _____ +--------------+------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ | Short name | Type/HexadecimalString | +--------------+------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ | Rulesets | :ref:`All `, :ref:`Changed Behavior `, :ref:`CompatibilityPHP70 `, :ref:`CompatibilityPHP71 `, :ref:`Inventory ` | +--------------+------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ | Exakat since | 0.8.4 | +--------------+------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ | PHP Version | All | +--------------+------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ | Severity | Major | +--------------+------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ | Time To Fix | Slow (1 hour) | +--------------+------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ | Precision | Very high | +--------------+------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ | Available in | `Entreprise Edition `_, `Exakat Cloud `_ | +--------------+------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+