[TASK] Initial import of the files.
This commit is contained in:
@@ -0,0 +1,16 @@
|
||||
<?php
|
||||
$file = $argv[1];
|
||||
if(file_exists($file) === FALSE) die("Nein\n");
|
||||
$data = file_get_contents($file);
|
||||
$size = strlen($data);
|
||||
$foobar = array();
|
||||
for($i = 0; $i < $size; $i++) {
|
||||
$char = $data[$i];
|
||||
$foobar[ord($char)]++;
|
||||
}
|
||||
rsort($foobar);
|
||||
print_r($foobar);
|
||||
echo "\n\n";
|
||||
echo "Strlen: " . $size . "\n";
|
||||
echo "filesize: " . filesize($file) . "\n";
|
||||
?>
|
||||
Reference in New Issue
Block a user