title: How do i change the column names in a result set and create a new result set in PHP with modified column names
body: <p>Example: <strong>my current result set:</strong></p>
  
  <pre><code>array(7) {[0]=&gt;array(2) 
  
  { ["class_id"]=&gt;string(1) "1"["class"]=&gt;string(3)"1st"}
  
  { ["class_id"]=&gt;string(1) "2"["class"]=&gt;string(3)"2nd"}
  
  { ["class_id"]=&gt;string(1) "3"["class"]=&gt;string(3)"3rd"}
  </code></pre>
  
  <p><strong>I want a new result set as :</strong></p>
  
  <pre><code>array(7) {[0]=&gt;array(2) 
  
  { ["new_id"]=&gt;string(1) "1"["new_class"]=&gt;string(3)"1st"}
  
  { ["new_id"]=&gt;string(1) "2"["new_class"]=&gt;string(3)"2nd"}
  
  { ["new_id"]=&gt;string(1) "3"["new_class"]=&gt;string(3)"3rd"}
  </code></pre>
  
  <p>I dont want this to affect the column names in my database. only the result set.</p>