Posted By

mikedowson on 02/22/07


Tagged

php array


Versions (?)

Who likes this?

2 people have marked this snippet as a favorite

vali29
skywalker


Create, Add To and Read an Array in PHP


 / Published in: PHP
 

  1. $MyArray = array();
  2.  
  3. do {
  4.  
  5. $MyArray[] = $row_rsMyRecordset['MyField'];
  6.  
  7. } while ($row_rsMyRecordset = mysql_fetch_assoc($rsMyRecordset));
  8.  
  9. print_r(array_values($MyArray));

Report this snippet  

You need to login to post a comment.