(PHP 3, PHP 4, PHP 5)
This function is identical to ereg_replace() except that this ignores case distinction when matching alphabetic characters.
Example 1. Highlight search results
<?php$pattern = '(>[^<]*)('. quotemeta($_GET['search']) .')';$replacement = '\\1<span class="search">\\2</span>';$body = eregi_replace($pattern, $replacement, $body);?>
See also ereg(), eregi(), and ereg_replace().
Hosting by: Hurra Communications Ltd.Generated: 2007-01-26 18:00:18