Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
write file for testing variable in a php file.
$file=fopen("/path/to/the/file/test.txt", 'w+',true);
$content='';
foreach ($aray as $value){
$content.="id: ".$value."\n";
}
fwrite($file,$content);
fclose($file);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.