Re: for loop inside a switch

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Fri, 31 Aug 2007 22:05:11 -0700, jekillen wrote:

>You can run a switch inside a for loop and when a case is matched set 
>a variable to true.
>the break statement will break out of the switch, then inside the 
>iteration code, after the switch block, test the variable for true. If 
>it is true the use another break instruction.
>That should break out of the loop altogether at the end on that 
>particular iteration.

Ahhhh....  The *GoTo* solution.  :-)

Jonesy

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux