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

  • Print has a return value of 1.
  • Print can output multiple parameters at once.
  • Print is slower and less efficient than echo.
  • All of the above
All of the given options are true about the print statement in PHP. Print has a return value of 1, which can be useful in certain situations. Print accepts only one parameter at a time, and if multiple arguments are passed, it will result in a parse error. Print is slightly slower and less efficient than echo due to its return value handling. Learn more: https://www.php.net/manual/en/function.print.php
Add your answer
Loading...

Leave a comment

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