add corresponding ascending integer to array entry php
Posted
by Scarface
on Stack Overflow
See other posts from Stack Overflow
or by Scarface
Published on 2010-04-08T20:40:31Z
Indexed on
2010/04/08
20:43 UTC
Read the original article
Hit count: 445
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']);
}
© Stack Overflow or respective owner