Advertisement
Guest User

Hashes

a guest
Dec 18th, 2011
52
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.34 KB | None | 0 0
  1. <?php
  2. //Reads the file into an array. Each element of the array is 1 line from the file.
  3. if($file = file('hashes.txt', FILE_IGNORE_NEW_LINES))
  4. {
  5.     //Prints the count of each hash.
  6.     echo '<pre>'.print_r(array_count_values($file), true).'</pre>';
  7.  
  8.     //Prints the total hashes. Each line = 1 hash
  9.     echo 'There are '.count($file).' hashes.';
  10. }
  11. ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement