Search code examples
phpphpstorm

PhpStorm does not recognize "<%=" tag


My php project is running with error free but PhpStorm does not recognize <%= tag as expected my PhpStorm version is: PhpStorm 2017.2.1 Build #PS-172.3544.41, built on August 2, 2017 The sample is below: PhpStorm screen shot


Solution

  • That's the ASP tag syntax, not the PHP syntax. Older versions of PHP used to support that syntax as an option, but it is no longer available in PHP 7.0 or later. You need to stop using it, as it makes your code incompatible with current versions of PHP.