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
1.1k
0
Do you find this helpful?
14

View all MCQs in

Linux and PHP

Discussion

No comments yet