🎴 Flashcard Mode

PHP Data Types and Output Functions

Card1 / 20
Mastered0
Review0
QuestionClick to flip

Which of the following statement produce different output

AnswerClick to flip back
A
<?PHP echo "This is php example"; php?>
💡 Explanation:

This question asks which statement is DIFFERENT. Options A, B, and D are valid PHP output statements that would print 'This is php example'. Option C has 'php?>' instead of '?>' at the end, making it a syntax error that would fail to execute, thus producing different output (an error) compared to the others.

Change Mode