There are two types of comments in PHP. They are
Eg:
Multiple Line comments (/* */) are used to comment a large block of PHP code.
Ex: <?
- One Line comments (// or #)
- Multiple Line comments (/* */)
Eg:
<?
// echo 'Your code upto end of the line';
?>
<?
# echo 'Your code upto end of the line';
?>
Multiple Line comments (/* */) are used to comment a large block of PHP code.
Ex: <?
/*
echo 'This is a test';
echo 'This is a test line2';
echo 'This is a test line 3';
*/
?>