Return to Snippet

Revision: 2455
at February 22, 2007 05:30 by mikedowson


Initial Code
$MyArray = array();
	
do {
	
  $MyArray[] = $row_rsMyRecordset['MyField'];

} while ($row_rsMyRecordset = mysql_fetch_assoc($rsMyRecordset));

print_r(array_values($MyArray));

Initial URL

                                

Initial Description

                                

Initial Title
Create, Add To and Read an Array in PHP

Initial Tags
php, array

Initial Language
PHP