<?php$s = 2.2;switch($s){case 2.1: print "Option A"; break;case 2.2: print "Option B"; break;default: print "Option C";}?>
it compares it with 2.2 and thus prints Option B and exits.
Previous Question Next Question
Your comments will be displayed only after manual approval.