Home > Backend Development > PHP Problem > 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
Release: 2023-03-23 10:43:44
Original
983 people have browsed it

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!"; 
?>
Copy after login
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template