donmqryh49993
2013-08-20 06:52在多个案例中运行切换案例功能?
switch(n){
case "badge01":
case "badge02":
case "badge03":
case "badge04":
case "badge05":
//dosomething
break;
}
Hi above's switch case statement, I would like to use a function to run the multiple loop to generate the case's name, so can i know how to generate with function on a switch case statement like this?
switch(n){
case badgenameloop():
//dosomething
break;
}
And is it possible to do that?
Thanks and sorry for my bad English.
- 点赞
- 回答
- 收藏
- 复制链接分享
2条回答
为你推荐
- 在多个案例中运行切换案例功能?
- function
- for-loop
- php
- switch-statement
- 2个回答