note 55092 deleted from function.list by googleguy

From: Date: Thu, 13 Sep 2012 10:07:22 +0000
Subject: note 55092 deleted from function.list by googleguy
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-190707@lists.php.net to get a copy of this message
Note Submitter: Nearsighted ---- list, coupled with while, makes for a handy way to populate arrays. while (list($repcnt[], $replnk[], $date[]) = mysql_fetch_row($seek0)) { // insert what you want to do here. } PHP will automatically assign numerical values for the array because of the [] signs after the variable. From here, you can access their row values by array numbers. eg. for ($i=0;$i<$rowcount;$i++) { echo "The title number $repcnt[$i] was written on $date[$i]."; }

« previous php.notes (#190707) next »