Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- switch($test)
- {
- case < 0.1:
- // do stuff
- break;
- }
- <?php
- switch (true) {
- case ($totaltime <= 1):
- echo "That was fast!";
- break;
- case ($totaltime <= 5):
- echo "Not fast!";
- break;
- case ($totaltime <= 10):
- echo "That's slooooow";
- break;
- }
- ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement