34,333
edits
Changes
→PHP ''switch'' Statements
== PHP ''switch'' Statements ==
The ''if ... else'' constructs conditional construct described earlier in this chapter work well if you need to check a value against a few different criteria (for example checking the value of a string against a couple of possible candidates):
<pre>