rsalumpit Posted August 1, 2009 Share Posted August 1, 2009 i have this code but with error whats the right use of this <? $rand_con = mt_rand(1,90); switch ($rand_con){ case (1 to 30): echo $temp." "."RAINY"; break; case (31 to 60): echo $temp." "."FOGY"; break; case (61 to 90): echo $temp." "."WINDY"; break; }?> Link to comment https://forums.phpfreaks.com/topic/168376-solved-correct-use-of-case/ Share on other sites More sharing options...
ignace Posted August 1, 2009 Share Posted August 1, 2009 This is covered in the manual (http://www.php.net/manual/en/control-structures.switch.php) Link to comment https://forums.phpfreaks.com/topic/168376-solved-correct-use-of-case/#findComment-888192 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.