View Single Post
Old 05-08-2007, 02:17 PM  
Zoose
Confirmed User
 
Join Date: Aug 2006
Posts: 268
Assuming both files have the same number of lines..

Code:
$f1 = file( "file1" );
$f2 = file( "file2" );

$max = count( $f1_array );
$new = array();

for( $i = 0; $i = $max; $i++ ){

$new[] = $f1[$i] . $f2[$i] . "<br />\n";

}

print_r( $new );
Zoose is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote