Code Snippets Php

php $file = "somefile.txt";
$lines = count(file($file));
echo "There are $lines lines in $file";
?>