Home  >  Article  >  Backend Development  >  Explore some tags that may not be recognized and executed by the PHP interpreter

Explore some tags that may not be recognized and executed by the PHP interpreter

PHPz
PHPzOriginal
2023-03-23 09:17:50944browse

With the continuous development of the PHP language, there are more and more PHP tags, and developers can write PHP code in various ways. However, despite the large number of PHP tags, not all tags can be recognized and executed by the PHP interpreter. In this article, we will look at some tags that are not part of PHP and may cause your code to error or not function properly.

  1. short tags
    Short tags are tags available in some older versions of PHP. They have been deprecated in PHP 5.4 and above because they can conflict with regular content in XML or other formats of code and cause interpreter errors. Some PHP programmers prefer using these tags because they are shorter to write, but we do not recommend using short tags.

Example:

<? 
echo "Hello World!"; 
?>