Cult-Foo

Single press comments in php

I discover very useful and simple method to comment php code blocks with single press

/**\/
foreach ( $array as $k=>$v ) {
     echo $k.' = ' . $v;
}
/**/

By adding or removing backslash you can comment whole code block

/**/
foreach ( $array as $k=>$v ) {
     echo $k.' = ' . $v;
}
/**/

Did you like it? Help us spread the word!

2 Responses to "Single press comments in php"

  1. Sabotage says:

    Wow!!! that one of those little things that make a great difference.

    Thanks for Sharing

  2. savride says:

    Wow, nice & handy, i’ll try this one, thanks

Do you have something to say?