preg replace array php code example Example: php preg_replace function preg_replace($pattern, $replacement, $string);