title: Checking array count and then adding condition to add "and" to last array output
body: <p>I have successfully create conditions which check the array count. Everything I have is working, but I am trying to figure out how to configure it so that if the results are:</p>
  
  <pre><code>1, 2, 3
  </code></pre>
  
  <p>I want it to be:</p>
  
  <pre><code>1, 2 and 3
  </code></pre>
  
  <p>How can I do this?</p>
  
  <pre><code>$proposal_type_arr = $_POST['prop-type'];
  $proposal_type_count = count($proposal_type_arr);
  if ($proposal_type_count == 1) {
      $proposal_type = implode("", $proposal_type_arr);
  } 
  else if ($proposal_type_count == 2) {
      $proposal_type = implode(" and ", $proposal_type_arr);
  }
  else if ($proposal_type_count &gt; 2) {
      $proposal_type = implode(", ", $proposal_type_arr);
  }
  </code></pre>