View Single Post
Old 12-21-2007, 11:41 AM  
Dirty F
Too lazy to set a custom title
 
Dirty F's Avatar
 
Industry Role:
Join Date: Jul 2001
Posts: 59,204
Quote:
Originally Posted by Zoose View Post
Code:
<?php

$list1 = file( "list1.txt" );
$list2 = file( "list2.txt" );

for( $i=0; $i<count($list2); $i++ ){

if( in_array( $list2[$i], $list1 ) ){ /* do nothing */ } else { $new_array[] = $list2[$i]; }

}

echo "<pre>";
print_r( $new_array );
echo "</pre>";

?>
Totally appreciate it. Even more if it was 2 mins earlier before i paid someone 25 bucks for the same thing
Dirty F is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote