Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- switch ($statTypeName) {
- case "TOTAL":
- echo "<br>TOTAL";
- break;
- case "VALUE":
- echo "<br>VALUE";
- break;
- }
- case ""TOTAL"":
- case ""TOTAL"":
- switch (substr($statTypeName, 1, -1)) {...}
- class StatType
- {
- const TOTAL = 0;
- const VALUE = 1;
- // etc.
- }
- switch ($statType->type()) {
- case StatType::TOTAL:
- echo "<br>TOTAL";
- break;
- case StatType::VALUE:
- echo "<br>VALUE";
- break;
- }
Advertisement
Add Comment
Please, Sign In to add comment