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
< ?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 */ ? >
$this is not a comment;//this is a comment/*this is alsoacomment */
There are 3 styles of PHP comments // comment a single line # comment a single line (perl-style /* comment block */
You would need to learn PHP and MySQL try http://www.tutorialized.com
"Comment on this statement." is an imperative sentence.The subject of the sentence is implied, "You comment on..."
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
Some synonyms for "remark" include comment, observation, and statement.
You'd need PHP and mySQL knowledge for this. Search Google for "Free PHP Comment Scripts".
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>"; ?>
It depends which programming/scripting language you use.In PHP it can look this way ($i is a variable):
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".
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>