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 ::::::::
query data base
$type1 = array($rotation."\n");
$linea = $type1;
$final = $linea;
$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
kindly assist with this issue..
Thanks in advance