preg_replace php

The preg_replace() function behaves like the search-and-replace operation in your text editor. It finds all occurrences of a pattern in a string and changes those occurrences to something else: $new = preg_replace(pattern, replacement, subject [, limit ]); The most common usage has all the argument strings except for the integer limit. The limit is the … Read more