Which of the following are true about comments in PHP?

  • Comments are ignored by the PHP interpreter during script execution
  • Comments can be used to leave notes or explanations for other developers
  • Comments are sent to the client's browser along with the executed PHP code
  • Comments can be used to alter the logic of the PHP code
Comments in PHP are ignored by the PHP interpreter during script execution. They are purely for developers' benefit and are not sent to the client's browser. Comments can be used to leave notes or explanations for other developers. The last option is incorrect because comments do not alter the logic of the PHP code; they only provide additional information or instructions to the developers.
Add your answer
Loading...

Leave a comment

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