I have sort of a complicated question to ask. I'm using this script on one of my pages:
<?php
srand((double)microtime()*1000000);
$tiplist = file("tips.txt");
$ntips = sizeof($tiplist);
$rtip = rand(0,$ntips-1);
$tip = $tiplist[$rtip];
echo $tip;
?>
I keep random quotes in a file called tips.txt . When it reads from that file, it reads each line as a different quote, i.e:
1) blah blah blah
2) whatever
3) um... weird...
4) huh...
but instead of that I want it so that the quotes are seperated by a blank line, i.e:
1) blah
blah
blah
2)whatever
3)um...
weird...
4) huh...
how would I go about doing this? I am really extremly new with this kind of stuff.
Thanks for any help! 🙂