Multiple choice technology web technology

  1. The most portable version of PHP tag that is compatible to embed in XML or XHTML too is:

  1. <? ?>

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

  3. <% %>

  4. <?php ?>

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

The tag is the most portable PHP delimiter because it is XML-compliant and works in XHTML documents. Short tags like ?> depend on php.ini configuration and may not work in all environments. The tag format is verbose and rarely used. ASP-style tags <% %> are deprecated and removed in PHP 8. Using <?php ensures your code works across different server configurations and XML-based document types.