What will be the output of the following PHP code?

🎲 Try a Random Question  |  Total Questions in Quiz: 20  |  🧠 Study this quiz with Flashcards
This question is part of a full practice quiz:
PHP Programming Basics Practice Test: Echo & Print in PHP — practice the complete quiz, review flashcards, or try a random question.

In PHP, echo and print are both language constructs that output data to the screen. Echo is slightly faster than print and can take multiple parameters, while print can only take one argument. Echo also doesn't have a return value, while print returns 1 to indicate successful execution.  Here are some differences between echo and print: Arguments: Echo can pass multiple arguments separated by commas, while print can only have one argument at a time. Output: Echo can exhibit the outputs of one or more strings separated by commas, while print can only output a single string. Parentheses:... Show more

What will be the output of the following PHP code?<br><?php<br>echo "This", "was", "a", "bad", "idea";<br>?>