结合两个PHP行

时间:2017-11-05 22:29:35

标签: php

如何组合这些php行?我是php的新手,我的目标是隐藏某些页面中的某些导航项目。我很感激你的帮助。 谢谢

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

1 个答案:

答案 0 :(得分:-1)

你可以使用php Logical Operators更具体的 if done: # Start of block print('Game over') #Why is this line not printed episode = episode + 1 #Why is episode not getting updated # End of block print('Episode, ', episode) #Only this line is printed on screen #episode_reward = 0 env.reset()

||