title: How to add A through Z at the end of a string PHP
body: <p>What I am doing is taking a vehicle VIN number and taking the last 6 digits of it and storing it as a stock number. The issue I have is I have a function that goes and checks the database to make sure that stock number exists. If it does (can have the same vehicle in inventory again from buy back, etc) I want to concat at the end of the sting A through Z. </p>
  
  <pre><code>if(strlen($vin) &gt; 9) {
      $stocknum = substr($vin,-6);
      while(verfiyUnique($mysqli, $stocknum) != true) {
          if(strlen($stocknum &lt; 7)) {
              $stocknum = substr($vin,-6) . "A";
          }else{
              ?
          }
      }
      return $stocknum;
  </code></pre>
  
  <p>How do I increment lets say A to B or B to C if it does match?</p>
  
  <p>Thanks in advance for your help!</p>