Does fgets ignore certain character combinations?
<p>I'm using fgets to read a file line by line.  Certain string combinations are being ignored.  I'm guessing this is being picked up as an escape character, but I don't understand.</p>

<p>My code is:</p>

<pre><code>$myFile = $_GET['filename'];

$file = fopen($myFile, "r");

while (!feof($file))
{
   $currentLine = fgets($file);
   print $currentLine;
}
</code></pre>

<p>And my file is:</p>

<pre><code>15:37:33 Me &lt;Washington  USA&gt;  outdoor
15:39:34 Me &lt;Washington USA&gt;  outdoor
15:41:36 Me &lt;208 Terrace Ct SE USA&gt;  outdoor
15:43:37 Me &lt;305 Glyndon St SE USA&gt;  indoor
</code></pre>

<p>Yet the output is only this:</p>

<pre><code>15:37:33 me outdoor 15:39:34 me outdoor 15:41:36 me &lt;208 Terrace Ct SE USA&gt; outdoor 15:43:37 me &lt;305 Glyndon St SE USA&gt; indoor
</code></pre>

<p>Why are the &lt;'s followed by characters ignored but not the &lt;'s followed by numbers?</p>
