Reply to comment

Commenting Trick

This is real simple. You might comment out code like this:

/*
 $thiscode = $is + $not + $interpreted;
*/

When you want to use that chunk of code, you'd remove the comments. That would require two deletions, and restoring would require adding four characters. Here's an alternative way:

/*
 $thiscode = $is + $not + $interpreted;
// */

Note that the double-slash comment doesn't actually get interpreted because it's inside the /* */ comment block. To uncomment it:

//*
 $thiscode = $is + $interpreted;
// */

Reply

The content of this field is kept private and will not be shown publicly.
  • Allowed HTML tags: <a> <b> <dd> <dl> <dt> <i> <li> <ol> <u> <ul> <p> <br> <div> <pre> <code> <img><h1><h2><h3><h4> <blockquote>
  • Lines and paragraphs break automatically.
  • Web page addresses and e-mail addresses turn into links automatically.

More information about formatting options

.