Stupid qestion but I have some php that loops through a file using the file array and prints it out. Thats great but is there a way for me to loop through the file and save that array to a new blank file????
<?php
$lines = file('test.xml);
foreach ($lines as $line_num => $line) {
echo htmlspecialchars($line) . "<br />\n";
}
?>
thanks!
<?php
$lines = file('test.xml);
foreach ($lines as $line_num => $line) {
echo htmlspecialchars($line) . "<br />\n";
}
?>
thanks!