McqMate
Q. |
What is the difference between print() and echo() in PHP? |
A. | print has a return value of 1 so it can be used in expressions where as echo has a void return type |
B. | echo() can be used in the CLI version of PHP, while print() can’t |
C. | print() can be used in the CLI version of PHP, while echo() can’t |
D. | There’s no difference: both functions print out some text! |
Answer» B. echo() can be used in the CLI version of PHP, while print() can’t |
View all MCQs in
Linux and PHPNo comments yet