title: How can I do this more efficiently?
body: <pre><code>switch ($_POST['stealmeth'])
  {
      case "Plimus":
          if (!is_plimus_ref($_POST['stealrefid']))
          {
              $errorArr[] = "Reference ID doesn't match the payment method.";
          }
          break;
      case "LR":
          if (!is_lr_ref($_POST['stealrefid']))
          {
              $errorArr[] = "Reference ID doesn't match the payment method.";
          }
          break;
      case "PP":
          if (!is_pp_ref($_POST['stealrefid']))
          {
              $errorArr[] = "Reference ID doesn't match the payment method.";
          }
          break;
      case "AP":
          if (!is_ap_ref($_POST['stealrefid']))
          {
              $errorArr[] = "Reference ID doesn't match the payment method.";
          }
          break;
  }
  </code></pre>
  
  <p>As you can see, I'm just doing the same thing over and over.</p>
  
  <p>Is there a cleaner or more efficient way to do this?</p>