...content.. "
# around the desired content. Then we create an array, each element containing
# the data between tags
#-------------------------------------------------
// We need to place the first "" tag before the first piece of desired
// data, which we know starts with the first occurrence of $separator
$separator = "";
// Find first occurrence of $separator
$beg_position = strpos($page, $separator);
// Get rid of everything before the first piece of desired data
// and insert a "" tag before the data.
$page = substr($page, $beg_position, strlen($page));
$page = "".$page;
// We know that each piece of desired data is separated by $separator
//replace this text with our parse tags,
// which will surround all desired content with ... .
$page = str_replace($separator, " ", $page);
// Put all the desired content into an array.
$desired_content_array = parse_array($page, "", "", EXCL);
# End: Parsing content
#-------------------------------------------------
#-------------------------------------------------
# Start: Look for the $desired_site in each result case
for($page_rank=0; $page_rank", EXCL);
// Look for the link with the word "Next" in it, as we know this
// link contains the address of the next page.
for($xx=0; $xx