Multiple choice technology web technology

PHP server scripts are surrounded by delimiters, which?

  1. <&>...</&>

  2. <?php>...</?>

  3. <?php…?>

  4. <script>...</script>

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

PHP scripts must be enclosed in delimiters. Option B incorrectly uses as the opening tag, while option A is not valid PHP syntax. The correct opening tag is as the closing tag.

AI explanation

PHP code embedded in an HTML file is wrapped in the tag pair, which tells the server where PHP parsing starts and ends. The other options either use invalid syntax or the tags used for other languages like JavaScript's tag.