t is no longer only for Windows line endings.

Default encoding is used, which is by default UTF-8. The following reads 42 UTF-8 characters and returns them as a Unicode string:
<?php
$f 
fopen"somefile.txt""rt" );
$str fread$f42 );
?>