Update index.php

Unified all similar cases, added default switch behavior
Merge pull request #63 from YonmaN/master

Update index.php - Case scenarios by YonmaN