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;
}
/**/
Managed WordPress Hosting

Did you like it? Help us spread the word!

Do you have something to say?