Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- $mailing_list = $list->generateList();
- $list_count = count($mailing_list);
- if($list_count > 0){
- $thetime = time();
- $list_file = 'list_' . $thetime . '.csv';
- $list_file_url = 'lists/' . $list_file;
- $handle = fopen($list_file_url, 'w');
- foreach($mailing_list as $line){
- fwrite($handle, implode(',', $line) ."\n");
- }
- fclose($handle);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement