Which are two statements for outputing the text in PHP?
-
print and display
-
display and echo
-
println and display
-
echo and print
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.