Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- //Reads the file into an array. Each element of the array is 1 line from the file.
- if($file = file('hashes.txt', FILE_IGNORE_NEW_LINES))
- {
- //Prints the count of each hash.
- echo '<pre>'.print_r(array_count_values($file), true).'</pre>';
- //Prints the total hashes. Each line = 1 hash
- echo 'There are '.count($file).' hashes.';
- }
- ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement