Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- //php ragaszd.php > /tmp/kimenet
- define('d',",");
- define('n',"\n");
- $f_=file('f1',FILE_IGNORE_NEW_LINES | FILE_SKIP_EMPTY_LINES); // f1 - 6oszl
- $g_=file('f2',FILE_IGNORE_NEW_LINES | FILE_SKIP_EMPTY_LINES); // f2 - 2oszl
- foreach($f_ as $i=>$f){
- $x=explode(d,$f);
- $y=explode(d,$g_[$i]);
- print $f.($x[1]==$y[0]?$g_[$i]:'').n;
- }
- ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement