Welcome Guest, Not a member yet? Register   Sign In
Can/should a switch be declared in a foreach loop
#1

[eluser]TheFuzzy0ne[/eluser]
Hi everyone. Just a quick question. I wanted to put a switch inside a foreach statement. Now I know these work differently from the if construct, so I thought I'd ask if there's any reason why I shouldn't use a switch. Should I use a switch, or stick to if statements?

Thanks.


Messages In This Thread
Can/should a switch be declared in a foreach loop - by El Forum - 02-17-2009, 02:58 PM
Can/should a switch be declared in a foreach loop - by El Forum - 02-17-2009, 04:11 PM
Can/should a switch be declared in a foreach loop - by El Forum - 02-17-2009, 04:13 PM
Can/should a switch be declared in a foreach loop - by El Forum - 02-17-2009, 04:20 PM
Can/should a switch be declared in a foreach loop - by El Forum - 02-17-2009, 05:06 PM
Can/should a switch be declared in a foreach loop - by El Forum - 02-17-2009, 10:57 PM



Theme © iAndrew 2016 - Forum software by © MyBB