Ad Code

How to Comment out a Large Section

How can I comment out a whole section of code in PHP?
Do I have to do this:
<!-- -->
to each line?

<!--Begin Video Browser Container-->
  <!-- we need a fixed height here if done this way to stablize the ajax load -->
  <div class="container-wide">
    <div class="browse-videos" style="height: 332px;">

No. To comment out blocks of PHP code you can use

/*
...
...
...
*/

dots replace code
To comment out blocks of HTML code
<!-- ...
...
...
-->
As long as the comment "tags" (they're called something else) are well formed.

Reactions

Post a Comment

0 Comments