Which of the following can be done using either echo or print in PHP?

  • Outputting strings, variables, and HTML code.
  • Concatenating multiple strings together.
  • Displaying the result of an expression.
  • All of the above
All of the given options can be done using either echo or print in PHP. Both echo and print can be used to output strings, variables, and HTML code. They can concatenate multiple strings together and display the result of an expression. The choice between echo and print depends on the specific requirements and personal preference. Learn more: https://www.php.net/manual/en/function.echo.php 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 *