- htmlspecialchars: documentation ( source)
- file: documentation ( source)
<?php
$all_lines = file('http://www.facebook.com/');
foreach ($all_lines as $line_num => $line)
{
echo "Line No.-{$line_num}: " . htmlspecialchars($line) . "<br />\n";
}
?>