1. What is the difference between echo and print in PHP?
Both are used to output data. Echo can take multiple parameters and is slightly faster. Print can take only one argument and always returns one, so it can be used in expressions.
echo 'Hi'; print 'Hello';