Skip to:
Content
Pages
Categories
Search
Top
Bottom

Re: Skipping code in .php files and CSS.


chrishajer
Participant

@chrishajer

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

Skip to toolbar