08-07-2009, 10:37 PM
|
#8 (permalink)
|
|
how quixotic are you?
Join Date: Dec 2007
Location: Lapeer, MI
Posts: 445
Thanks: 37
|
It's not really all that bad, just don't use it if you don't like it. I can see how it would promote bad code practices, but I can also see how it would be useful for something like a multi-level break.
PHP Code:
// $x is a multi-dimensional array of data..
foreach($x as $y) { foreach($y as $z) { if($z == 'your mom') { goto sweet; } } }
sweet:
Then again you could just use break 2; ...
|
|
|
|