Re: Skipping code in .php files and CSS.
Yes, you can comment out a block of code in between the <?php
and ?>
by using /* commented this part */
. For example,
<?php
echo $user;
/* echo $phone; */
?>
The phone would no longer be displayed because you commented it out. It won’t even appear in the source of the page when viewed in the browser, unlike a HTML comment <!-- commented this part -->
or CSS comments (which are always visible.)