note 55092 added to function.list

From: Date: Mon, 25 Jul 2005 14:34:33 +0000
Subject: note 55092 added to function.list
Groups: php.notes 
Request: Send a blank email to php-notes+get-92418@lists.php.net to get a copy of this message
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]."; } ---- Manual Page -- http://www.php.net/manual/en/function.list.php Edit -- http://master.php.net/manage/user-notes.php?action=edit+55092 Delete: added to the manual -- http://master.php.net/manage/user-notes.php?action=delete+55092&report=yes&reason=added+to+the+manual Delete: bad code -- http://master.php.net/manage/user-notes.php?action=delete+55092&report=yes&reason=bad+code Delete: spam -- http://master.php.net/manage/user-notes.php?action=delete+55092&report=yes&reason=spam Delete: useless -- http://master.php.net/manage/user-notes.php?action=delete+55092&report=yes&reason=useless Delete: non-english -- http://master.php.net/manage/user-notes.php?action=delete+55092&report=yes&reason=non-english Delete: other reasons -- http://master.php.net/manage/user-notes.php?action=delete+55092&report=yes Reject -- http://master.php.net/manage/user-notes.php?action=reject+55092&report=yes Search -- http://master.php.net/manage/user-notes.php

« previous php.notes (#92418) next »