Which of the following statements in PHP can output strings, variables, and HTML code?

  • echo
  • print
  • printf
  • All of the above
All of the given options can be used in PHP to output strings, variables, and HTML code. Both echo and print are used to display strings and variable values. The printf function is used for formatted output, allowing you to control the format of the output. However, echo and print are commonly used for simple output purposes in PHP. Learn more: https://www.php.net/manual/en/function.echo.php https://www.php.net/manual/en/function.print.php https://www.php.net/manual/en/function.printf.php
Add your answer
Loading...

Leave a comment

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