Thats because in the FOR loop, you are assigning the $i the amount of values in the array, so its going to start at the bottom... then you subtract, so its only doing what it tells you... but here is how to start at top, print to the bottom..
<?php
$arrText=file("chat.txt");
$chat="";
for ($i=0; $i>count($arrText)-50; $i++) {
$arrText[$i]=trim($arrText[$i]); $chat_from=$chat_from.$arrText[$i]."<br>";
}
echo "chat_from=".$chat_from;
?>