title: PHP ordered list from an array
body: <p>Hi I'm trying to make an ordered list print out  from an array.
  This is my code as of now:</p>
  
  <pre><code>    &lt;?php
  
  
      $Salespeople = array(
      "Hiroshi Morinaga"=&gt;57,
      "Judith Stein"=&gt;44,
      "Jose Martinez"=&gt;26,
      "Tyrone Winters"=&gt;22,
      "Raja Singh"=&gt;21);
  
      foreach ($Salespeople as $Salesperson) {
          echo key($Salespeople) . ": $Salesperson cars&lt;br /&gt;";
          next($Salespeople);
      }
      ?&gt;
  </code></pre>
  
  <p>the problem i have is that the outcome is this:</p>
  
  <pre><code>    Judith Stein: 57 cars
      Jose Martinez: 44 cars
      Tyrone Winters: 26 cars
      Raja Singh: 22 cars
      : 21 cars
  </code></pre>
  
  <p>How can i make it so it shows all the names and instead print out like this?</p>
  
  <pre><code>    Hiroshi Morinaga: 57
      Judith Stein: 44 cars
      Jose Martinez: 26 cars
      Tyrone Winter: 22 cars
      Raja Singh: 21 cars
  </code></pre>
  
  <p>Thank you.</p>