$original = “The quick red fox jumps over the lazy brown dog.”;
$new = preg_replace(“/the/i”, “\$0“, $original);
Source here.
$original = “The quick red fox jumps over the lazy brown dog.”;
$new = preg_replace(“/the/i”, “\$0“, $original);
Source here.