How To Write Comments In PHP Example?
Hi Friends,
This example is How to write comments in PHP?
In this article, we have to pass a comment for PHP code by using simple basic syntax.
Comments are helpful to understand the complex short code.
The comment tag is useful during the debugging of the codes php.
We use comments to understand the functionality of the code.
So let's start example following step.
Example : 1
Basically, the single-line comments begin with // comments.
<?php
// Output "Hello Nicesnippets"
echo "Hello Nicesnippets";
?>
Output:
Hello Nicesnippets
Example : 2
Multiline comments begin with /* and ends with */.
<?php
echo "Hello Nicesnippets";
/* It will print the
message "Hello Friends" */
?>
Output:
Hello Nicesnippets
Supported Browsers are listed below:
1. Google Chrome
2. Internet Explorer
3. Firefox
4. Safari
5. Opera
I hope it can help you.....
- How To Use Php Conditional Statement Example
- How to Check if String Contains Regex in PHP?
- PHP Array_column() Function Example
- PHP Generate List of Random Numbers Between 0 and 100 Example
- How to User Login with Facebook in PHP?
- How to Explode Every Character into Array Using PHP Example?
- PHP Form Validation Tutorial
- PHP Convert XML to JSON Example