结合两个PHP行

How can I combine these php lines? I'm very new with php and my goal is to hide certain navigational items from certain pages. I'd appreciate your help. Thank you

<?php if($_SERVER['PHP_SELF']=='/index.php'){ ?> class="hidden" <?php } ?>  <?php if($_SERVER['PHP_SELF']=='/our-menu.php'){ ?> hidden <?php } ?>

you can use php Logical Operators more specific the or ||:

<?php if($_SERVER['PHP_SELF']=='/index.php' || $_SERVER['PHP_SELF']=='/our-menu.php'){ ?> class="hidden" <?php } ?>