array issue
| From: | OpenSource | Date: | Sun, 17 Aug 2003 15:30:40 +0000 |
| Subject: | array issue | ||
| Groups: | php.db | ||
| Request: | Send a blank email to php-db+get-29919@lists.php.net to get a copy of this message | ||
hi ya'll
I am having a nightmare on this issue of mine.
I've got this array that I need to write to a file...
:::::::: sample code below ::::::::
while (something);
{
query data base
$r_ul=ifx_fetch_row($sideQuery4);
$type1 = array($rotation."\n");
switch ($r_ul['number'])
{
case '4';
$linea = $type1;
break;
}
$final = $linea[0];
$my_array = array();
array_push ($my_array, $final);
}
$file = 'db_dump.dat';
$fp = fopen($file, "w");
fputs($fp, $my_array); <--- I would like to write the complete array into the file
fclose($fp);
kindly assist with this issue..
Thanks in advance