|
Any php gurus here? Array_walk help needed
Im trying to create a file by using each element of an array as the filename. I have the following code and am getting an Invalid argument error.
$newfile = file("newdata.txt");
function touchfile($foo) {
touch($foo);
}
array_map ("touchfile", $newfile);
The error is occurring in the touch line.
Any suggestions are appreciated.
Chris
|