Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- // coded by shutdown57
- echo "\n=[ TOOLS KONTOOLS ]=\n";
- echo "masukin file ::"; $file = trim(fgets(STDIN));
- echo "delimiter/pemisah ::"; $delim =trim(fgets(STDIN));
- echo "simpan dengan nama::"; $nama =trim(fgets(STDIN));
- $pisah=explode(PHP_EOL,file_get_contents($file));
- foreach($pisah as $pepek){
- $mail=explode($delim,$pepek);
- @$email.=$mail[0]."\n";
- }
- $fp = fopen($nama,'w');
- fwrite($fp,$email);
- fclose($fp);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement