OK here goes:
I have a variable with the follwoing info:
Googlebot=Google.com
slurp@inktomi=Hot Bot
ask jeeves=Ask Jeeves
lycos=Lycos.com
whatuseek=What You Seek
ia_archiver=Archive.org
I need it to do the following:
$i=explode("=\r\n", $variable);
while($r=each($i)) {
if (ereg($r[0], $_SERVER['http_host'])) echo "<b>$r[1]</b>";
}
Am I using the right code for this? Should I be using wile or maybe I should be using foreach ...??? Someone please help!🙁