answersLogoWhite

0

For one line comment

// Your one-line comment here

For multi line comments

/*

* Multi-line comments here

* some explanation

* @author The author of the code

* @version The version of the code

* @date The date code was written

* @params The parameters of the code

* @return What is returned. For eg. a string, a number or a boolean

*/

Not everything written is multi-line is essential. Just write a comment in way that you and people who see your code in the future understand what that piece of code does

User Avatar

Wiki User

12y ago

What else can I help you with?

Related Questions

How do you add a comment in PHP?

< ?php // This is an example of comment in PHP /* This is another example of comment in PHP and we can write comments in multiple lines using this method */ ? >


How do you comment in PHP?

$this is not a comment;//this is a comment/*this is alsoacomment */


How do you leave comment on php code?

There are 3 styles of PHP comments // comment a single line # comment a single line (perl-style /* comment block */


How do you put comment box in the website And where can I see the comment that people submitted on my website?

You would need to learn PHP and MySQL try http://www.tutorialized.com


Comment on this statement?

"Comment on this statement." is an imperative sentence.The subject of the sentence is implied, "You comment on..."


What is a correct way to add a comment in PHP?

There are many ways to comment in PHP, all of them valid: /* Classic C style, which allows you to comment blocks rather than single lines */ // C++ Style, which remarks the remainder of a single line # bash style, which also is a rest-of-the-line comment


What is the synonyms of remark?

Some synonyms for "remark" include comment, observation, and statement.


How do you make a comments page on dreamweaver?

You'd need PHP and mySQL knowledge for this. Search Google for "Free PHP Comment Scripts".


How do you put HTML in PHP?

Its done exactly the same as when you put it in an HTML file. There are 2 ways you can do it: <html> <?php // php stuff ?> </html> Or you can do it like this: <?php echo "<html>"; // php stuff echo "</html>"; ?>


How do you put a variable in an if statement in scratch?

It depends which programming/scripting language you use.In PHP it can look this way ($i is a variable):


What does the term include php refer to?

It is a term used in PHP programming language. The "include" statement means inclusion or evaluation of a specified file. It is similar to another PHP keyword - "require".


What is syntax in php?

We can use php tags in different ways. <?php //php code to be written here ?> OR <? //php code ?> This tag will not work when we using editors such as macromedia dreamweaver. OR < script language="php"> //php code </script>