![]() |
Home
iRate! IceMelon IM Tutorials Headlines CoolSites PHP Functions |
Most Referenced Functions » google_pagerank() » preg_replace() » imagecreatefrompng() » site_pageranks() » imagepng() » imagedestroy() » imagestring() » imagecolorallocate() » htmlentities() » preg_match() » fopen() » header() » getimagesize() » htmlspecialchars() » ob_start() » session_start() » strstr() » preg_match_all() » ob_flush() » strpos() » flush() » setcookie() » str_replace() » array2vars() » nl2br() » preg_split() » ereg() » ereg_replace() » urlencode() » readgzfile() Become a sponsor for $15/month. Link is sitewide - PR5 homepage, 20+ PR4 pages, 90+ PR3 pages. Email dave[AT]icemelon[D0T]c0m. |
PHP Functions
Function: eregi_replace (PHP 3, PHP 4, PHP 5) eregi_replace -- Replace regular expression case insensitiveDescriptionstring eregi_replace ( string pattern, string replacement, string string )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); ?> Related Function(s) |