Multiple choice

Which of the following is not a PHP tag?

  1. <?php?>

  2. <script language=php> </script>

  3. <? ?>

  4. <?% %>

Reveal answer Fill a bubble to check yourself
D Correct answer
Explanation

PHP supports multiple tag styles: standard , short tags ?>, and script tags . The ASP-style tags <% %> were supported in older PHP versions with asp_tags enabled but were removed in PHP 7.0, making them the most incorrect option among modern PHP installations.