You want to include a note in your PHP code for other developers, but you don't want this note to affect the execution of the script. How would you do this?

  • Include the note as an HTML comment.
  • Include the note as a PHP comment.
  • Add the note to the PHP error log file.
  • Send the note to the developers separately.
In PHP, you can include notes or annotations in your code using comments. Comments in PHP start with // for a single-line comment or /* and end with */ for multi-line comments. Comments are ignored by the PHP interpreter, so they don't affect the execution of your script. Learn more: https://www.php.net/manual/en/language.basic-syntax.comments.php
Add your answer
Loading...

Leave a comment

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