I'm making a little searchbot, but I have a problem when I need to use the content. After I get the source of the page into a string stored in a variable, how would I break each line of the string into an array?
EX:
<?php
$url = "http://somewebsite/forum/memberlist.php?start=";
$urlnum = 0;
while ($urlnum < 99999999)
{
$html = file_get_contents($url.$urlnum);
//How do I make it so $html stores each line of text as apart of it's array?
}
?>
I tried $html = explode("\n", $html); but that didn't seem to work. Any ideas?