single comment for both php and html

by Ramya 2012-06-19 10:21:43

single comment for both php and html:

you can make a single comment for both php and html in one line,
for eg, if you want to comment html and php in the following code,
<div><?php echo $name; ?></div>


it would be difficult to comment both php and html in a single line.

just use the following concept to comment both php and html,
<?php /* <div><?php echo $name; ?></div> */ ?>



Razz
Razz
Razz
488
like
0
dislike
0
mail
flag

You must LOGIN to add comments

aasd