answersLogoWhite

0

How do you comment in PHP?

Updated: 9/22/2023
User Avatar

Wiki User

11y ago

Best Answer

$this is not a comment;

//this is a comment


/*this is also



a



comment */

User Avatar

Wiki User

11y ago
This answer is:
User Avatar

Add your answer:

Earn +20 pts
Q: How do you comment in PHP?
Write your answer...
Submit
Still have questions?
magnify glass
imp
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 leave comment on php code?

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


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


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 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


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>


What is the correct way to add comment in PHP?

// For single line comments /* Your comments here */ For multi-line comments


What is 10 percent in Php 250?

Answer: Php 2510% of Php 250= 10% * Php 250= 0.10 * Php 250= Php 25


What is a php consultant?

PHP Consultant is a Expert PHP Developer who Guide PHP Development Process


What is the default extension that most Web servers use to process php scripts?

PHP files extension is .php


What are semantics in PHP?

In PHP, semantics refer to the meaning of code or how statements are interpreted by the PHP engine. It involves understanding how code functions and interacts with other elements in a PHP script. Proper semantics ensure that the code behaves as expected and follows the established rules of the PHP language.


Is php a binary file?

No, PHP is text file with .php extension.