ereg function in php code example
Example: ereg function in php
//Replace words that begin with t with an empty string
while(eregi(“[[:<]](t[[:alpha:]]+)[[>:]]”), $search, $match)
{Print($match[1].” “);
$search=ereg_replace($match[1], “”, $search);
}