Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Fall through switch statement

Status
Not open for further replies.

someoneneedshelps

Technical User
Mar 3, 2016
75
GB
Is this fall through statement valid?

Code:
	function switch_to_get_values($valuetype)
	{		
		switch ($valuetype) 
		{
			case "image":
			case "time":					
			case "text":
			case "digityorn":	
			case "digitnory":			
			case "yorn":								
				$value=true;
				break;

			case "int":										
			case "float":
			case "int":							
			default:		
				$value=false;
				break;
										
		}
		return $value;
	}
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top