is_numeric does not work when reading from txt file?
<p>In a text file I have a file like this:</p>

<pre><code>Olivia
7

Sophia
8

Abigail
9

Elizabeth
10

Chloe
11

Samantha
12
</code></pre>

<p>I want to print out all the name only and ignore the numbers.</p>

<p>For some reason, it dont work - it wouldn't print anything?</p>

<pre><code>&lt;?php
$file_handle = fopen("names.txt", "rb");
while (!feof($file_handle) ) {
  $line_of_text = fgets($file_handle);
  if (!is_numeric((int)$line_of_text)) { 
    echo $line_of_text;
    echo "&lt;br /&gt;";
  }
}
fclose($file_handle);
?&gt;
</code></pre>
