/ Published in: PHP
URL: http://www.nutt.net/2004/12/28/multiple-cases-for-switch-construct/
put case value1:case value2:case value3: to allow the same code be executed when the value passed equals value1 or value2 or value3.
Expand |
Embed | Plain Text
Comments
Subscribe to comments
You need to login to post a comment.

Multiple cases can also be represented as:
case 1 || 2:echo “foobar”;