Explain the difference between ereg_replace() and eregi_replace(). ~ Interview Questions & Answers

Sunday, January 3, 2010

Explain the difference between ereg_replace() and eregi_replace().

ereg_replace() is used for matching patters to the input string. It then replaces the matched string. SYNTAX string ereg_replace ( string $pattern , string $replacement , string $string ) eregi_replace() is used for matching patters to the input string. It then replaces the matched string. The difference is that this function is case sensiti...