A PHP script should start with ___ and end with ___:
Correct answer
C. <?php ?>
12 views
C. <?php ?>
12 views
A PHP script starts with <?php and ends with ?>. Everything between these tags is executed by the PHP engine, while anything outside them is sent to the browser unchanged.
In a file that contains only PHP code, the closing ?> tag is usually left out to avoid accidental whitespace being sent as output. The other options are not valid PHP delimiters.
Keep preparing with more Computer Science MCQs on MCQsExam.com.
Not sure why the answer is C? Ask here and get an explanation.