title: How to remove extra array values
body: <p>I have a php script does this:</p>
  
  <ul>
  <li>Put UPC into form  </li>
  <li>Submit form </li>
  <li>Check to see if the UPC already exists in my database<br>
  <ul>
  <li>If yes, fetch it from MySQL database</li>
  <li>If not, fetch it from an external server, add it to MySQL database for future use</li>
  </ul></li>
  <li>Display results</li>
  </ul>
  
  <p>It works fine, but I'd like the variable to look exactly the same wether it comes from the MySQL cache, or the external server.</p>
  
  <p>When I print it from the server, it looks like this: </p>
  
  <p>Output:</p>
  
  <pre><code>[upc] =&gt; 066721020215
  [pendingUpdates] =&gt; 0
  [status] =&gt; success
  [ean] =&gt; 0066721020215
  [issuerCountryCode] =&gt; us
  [found] =&gt; 1
  [description] =&gt; Christie - Original Ritz Crackers
  [message] =&gt; Database entry found
  [size] =&gt; 225 g
  [issuerCountry] =&gt; United States
  [noCacheAfterUTC] =&gt; 2012-08-06T12:23:58
  [lastModifiedUTC] =&gt; 2009-04-06T01:51:08
  </code></pre>
  
  <p>However, When I print the array from MySQL, it looks like this: </p>
  
  <pre><code>$result = mysql_query("SELECT * FROM UPC WHERE `upc` = '$codes[0]'");
  $data = mysql_fetch_array($result);
  echo "&lt;pre&gt;" . print_r($data, true) . "&lt;/pre&gt;";
  </code></pre>
  
  <p>Output:</p>
  
  <pre><code>[0] =&gt; 066721020215
  [upc] =&gt; 066721020215
  [1] =&gt; 0
  [pendingUpdates] =&gt; 0
  [2] =&gt; success
  [status] =&gt; success
  [3] =&gt; 0066721020215
  [ean] =&gt; 0066721020215
  [4] =&gt; us
  [issuerCountryCode] =&gt; us
  [5] =&gt; 1
  [found] =&gt; 1
  [6] =&gt; Christie - Original Ritz Crackers
  [description] =&gt; Christie - Original Ritz Crackers
  [7] =&gt; Database entry found
  [message] =&gt; Database entry found
  [8] =&gt; 225 g
  [size] =&gt; 225 g
  [9] =&gt; United States
  [issuerCountry] =&gt; United States
  [10] =&gt; 2012-08-06
  [noCacheAfterUTC] =&gt; 2012-08-06
  [11] =&gt; 2009-04-06
  [lastModifiedUTC] =&gt; 2009-04-06
  </code></pre>
  
  <p>I realize it's more or less a cosmetic difference (and an array twice as big as it needs to be), but how would I go about easily removing the 0,1,2,3,etc identifiers without looping through the array creating and manually creating a new one? Is there a function that would remove the numbered identifiers?</p>