logic - Is break; required after die() php -


i've been thinking much...

in area of switch case break; required after die()

example:

switch($i){       case 0:           die('case without break;');       case 1:           die('case break;');           break;  } 

die() alias exit(), exit() terminate program flow immediately. (shutdown functions , object destructors still executed after exit())

and no, not syntax error omit break, on contrary there many useful cases omitting break. check manual page of switch statement examples.


Comments

Popular posts from this blog

css - Which browser returns the correct result for getBoundingClientRect of an SVG element? -

gcc - Calling fftR4() in c from assembly -

.htaccess - Matching full URL in RewriteCond -