All pastes #762385 Raw Edit

Unnamed

public text v1 · immutable
·published 2007-11-05 17:13 UTC
rendered paste body
function convert_hood_name($input)
{

  $input = trim($input);

  switch ($input) {
     case "BKLYN":
     $output = "Brooklyn";
     break;

     case "BNX":
     $output = "Bronx";
     break;

     case "DWN":
     $output = "Manhattan";
     break;

     case "NNJ":
     $output = "New Jersey";
     break;

     case "QNS":
     $output = "Queens";
     break;

     case "SIMIS":
     $output = "Manhattan";
     break;
 
     case "SINSH":
     $output = "Manhattan";
     break;

     case "SISSH":
     $output = "Manhattan";
     break;

     case "UES":
     $output = "Manhattan";
     break;

     case "UPM":
     $output = "Manhattan";
     break;

     case "UWS":
     $output = "Manhattan";
     break;

     default:
     $output = "NY";
  }

  return $output;
}