Hi Guys,
I'm completely new to PHP so I wonder if I could pick your brains?
Is this the correct way to call my function?
<?php
function writefile($filename, $data, $mode)
{
$fp = fopen($filename, $mode);
fwrite($fp, $data);
fclose($fp);
}
writefile("test.txt", "$testVariable", "a+");
?>
I'm not having any luck at the mo!
All input will be greatfully appreciated.