Multiple choice technology programming languages

Which are two statements for outputing the text in PHP?

  1. print and display

  2. display and echo

  3. println and display

  4. echo and print

Reveal answer Fill a bubble to check yourself
D Correct answer
Explanation

PHP has two primary language constructs for output: 'echo' and 'print'. Both display text, but echo is slightly faster and can take multiple arguments, while print returns a value (always 1) and can only take one argument. 'display' and 'println' are not PHP output functions.