PHP syntax is closed with

Review the verified answer and explanation for this ETEA Educational Testing and Evaluation Agency past-paper question on CampusFin.

PHP syntax is closed with Answer: Java and C++

Note: While the closing tag ?> is required when mixing PHP code with HTML within the same file, it is often omitted in files that contain only PHP code. This practice can help prevent accidental whitespace or output that might interfere with HTTP headers, especially when dealing with frameworks or libraries.