hi All,
I am extracting data from a website using a automation tool. I am getting the data in the form of an array, which I want to write it in a text file. Please have a look at the below piece of code which is not working. it creates a file but just write a word 'Array' into it instead of the data.
$rec = split("\[EXTRACT\]", $e);
echo "$rec";
//inserting the extracted data in to text file
$myFile = "testFile.t xt";
$fh = fopen($myFile, 'w') or die("can't open file");
fwrite($fh, $rec);
fclose($fh);
Any quick help is really appreciated.
I am extracting data from a website using a automation tool. I am getting the data in the form of an array, which I want to write it in a text file. Please have a look at the below piece of code which is not working. it creates a file but just write a word 'Array' into it instead of the data.
$rec = split("\[EXTRACT\]", $e);
echo "$rec";
//inserting the extracted data in to text file
$myFile = "testFile.t xt";
$fh = fopen($myFile, 'w') or die("can't open file");
fwrite($fh, $rec);
fclose($fh);
Any quick help is really appreciated.
Comment