I want to rotate text from a txt file
here is my below code but its not working, I don't know where I am getting thing wrong
<?php
$text= file_get_contents("text.txt");
$arr = explode("
", $text);
$max = count($arr);
$i = 0;
while($i < 3)
{
$i++;
echo $aText[rand(0, $arr)];
?>
In my text.txt
file i have some text like
are
can
how
now
put
see
I want to out put it line by line but Its not working. Please help me out.