<?php>
$fh = fopen("c:\public_html\namebase.txt", "w+");
foreach($match as $value)
{
fwrite($fh, $value);
}
fclose($fh);
?>
getting this error:
Notice: Array to string conversion on the fwrite line, and all that is written in the txt is Array.
note: $match is an array of this format [0] => name that is assigned previously in the code using regex.
Either corrections to my current code or alternate methods of writing arrays to files would be greatly appreciated.