.. _structures-stringinterpolationfavorite: .. _string-interpolation-favorite: String Interpolation Favorite +++++++++++++++++++++++++++++ This analysis collects the various ways that string interpolation is done inside strings. Until PHP 8.1, there were 4 ways : .. code-block:: php property"; $a = "$array[index]"; $a = ""; $a = "{$variable}"; $a = ""; ?> Specs _____ +--------------+-------------------------------------------------------------------------------------------------------------------------+ | Short name | Structures/StringInterpolationFavorite | +--------------+-------------------------------------------------------------------------------------------------------------------------+ | Rulesets | :ref:`All `, :ref:`Preferences ` | +--------------+-------------------------------------------------------------------------------------------------------------------------+ | Exakat since | 2.3.8 | +--------------+-------------------------------------------------------------------------------------------------------------------------+ | PHP Version | With PHP 8.0 and more recent | +--------------+-------------------------------------------------------------------------------------------------------------------------+ | Severity | Minor | +--------------+-------------------------------------------------------------------------------------------------------------------------+ | Time To Fix | Quick (30 mins) | +--------------+-------------------------------------------------------------------------------------------------------------------------+ | Precision | Very high | +--------------+-------------------------------------------------------------------------------------------------------------------------+ | Features | interpolation | +--------------+-------------------------------------------------------------------------------------------------------------------------+ | Available in | `Entreprise Edition `_, `Exakat Cloud `_ | +--------------+-------------------------------------------------------------------------------------------------------------------------+