search

Home  >  Q&A  >  body text

switch中的条件 来判断执行哪一个 case ,其他的都不执行吗?

橱窗的光橱窗的光2905 days ago1224

reply all(2)I'll reply

  • 数据分析师

    数据分析师2017-09-30 22:44:14

    The conditions in the switch are used to determine which case to execute, and the others are not executed? -PHP Chinese website Q&A-The conditions in switch are used to determine which case to execute, and the others are not executed? -PHP Chinese website Q&A

    Please watch and learn.

    reply
    0
  • 迷茫

    迷茫2016-12-17 13:39:20

    如果我们没有break语句,程序会一步一步执行到最后,遇到break,则不往下执行,没有符合条件,我们执行default语句,

    reply
    1
  • Cancelreply