In article <[EMAIL PROTECTED]>, "Joseph H
Blythe" <[EMAIL PROTECTED]> wrote:
What is happening is that you are replacing the variable $replaced
on each iteration of the while loop. As a result, $replaced is only
storing the most recent match.
To see this, try this out:
$keywords = "foo";
$data
G'day PHP'ers
I am trying highlight the results from a search, so far I have this working but only
if the string is an exact match ie: case sensitive, for example:
" . $val . "";
$replaced = ereg_replace($val, $hilite, $data);
}
echo $replaced;
?>
Now as metioned this seems to work only for "
2 matches
Mail list logo