Replacement may contain references of the form\\ n or (since PHP 4.0.4) $n, with the latter form being the preferred one.
Searches subject for matches to pattern and replaces them with replacement. If limit is specified, then only limit matches will be replaced; if limit is omitted or is -1, then all matches are replaced.