Jump to content

Inline comments


freelance84

Recommended Posts

Not really very important but it would come in handy. Having searched the old goggle pages nothing really came up:

 

Is it possible to have to some how insert commented out comments half way along a line and then continue on the same line back into the php?

 

e.g

When creating an array from multiple components it would be handy to be able to stick little notes in the line here and there with out having to drop onto a new line.

 

Anybody heard of this?

Link to comment
https://forums.phpfreaks.com/topic/203633-inline-comments/
Share on other sites

r u talking about something like below code?? if yes then its possible.. use multiline comment /* */ for that

$arr = array('a'=>'1', 'b'=>'2','c'=>'3' /* new array starts */ , 'd'=>array('2','3','5'=> /*new array starts*/ array('z'=>'10','y'=>'11')));
echo "<pre>";
print_r($arr);

Link to comment
https://forums.phpfreaks.com/topic/203633-inline-comments/#findComment-1066633
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.