Skip to content

Instantly share code, notes, and snippets.

@hglbrg
Created October 17, 2013 22:46
Show Gist options
  • Save hglbrg/7033670 to your computer and use it in GitHub Desktop.
Save hglbrg/7033670 to your computer and use it in GitHub Desktop.
Engineering Flowchart in PHP
$behaviour = $_GET['behaviour'];
$shouldIt = $_GET['shouldIt'];
switch($behaviour){
case "moves";
if ($shouldIt == "yes"){
return "Everything works!";
} else {
return "Apply duct tape.";
}
break;
case "moves not";
if ($shouldIt == "no"){
return "Everything works!";
} else {
return "Apply lubricant.";
}
break;
default;
return "We're working on it.";
break;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment