## Example

`

     string ereg_replace ( string $pattern , string $replacement , string $string )

`

## Description

This function scans string for matches to pattern, then replaces the matched text with replacement. Warning: This function has been DEPRECATED as of PHP 5.3.0. Relying on this feature is highly discouraged.

## Return Values

The modified string is returned. If no matches are found in string, then it will be returned unchanged.