add corresponding ascending integer to array entry php
- by Scarface
Hey guys I have an assigned array from mysql results and I simply want to number them starting at one. Does anyone know how to do this?
while ($row=mysql_fetch_assoc($query)){
$out[] = array("ASSIGNED INTEGER", $row['total']);
}