Which of the following sets of tags can be used to denote blocks of PHP code and are always available (Choose two)?

Which of the following sets of tags can be used to denote blocks of PHP code and are always
available (Choose two)?

Which of the following sets of tags can be used to denote blocks of PHP code and are always
available (Choose two)?

A.
<?php. . .?>

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

C.
<!-php !>

D.
<^php ??^>

E.
<php$ ?.. >

F.
None of the above.

Explanation:

There are four sets of tags which can be used to denote blocks of PHP code. Of these, only two
(<? php . . .?> and <script language=” php “>. . .</script>) are always available; the others can be
turned on or off from the php.ini configuration file. While the short-form tags and ASP-style tags
may be convenient, they are not as portable as the longer versions. Also, if you intend to embed
PHP code in XML or XHTML, you will need to use the <? php . . .?> form to conform to the XML.



Leave a Reply 0

Your email address will not be published. Required fields are marked *