Which of the following are true about the echo statement in PHP?

  • Echo does not have a return value.
  • Echo can output multiple parameters at once.
  • Echo is slightly faster and more efficient than print.
  • All of the above
All of the given options are true about the echo statement in PHP. Echo does not have a return value; it simply outputs the specified string(s). Echo can output multiple parameters at once, allowing you to concatenate multiple strings or variables together. Echo is slightly faster and more efficient than print, as it does not have a return value to handle. Learn more: https://www.php.net/manual/en/function.echo.php
Add your answer
Loading...

Leave a comment

Your email address will not be published. Required fields are marked *