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
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
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.