Source Code:
(back to article)
<?php $string = "The quick brown fox jumps over the lazy dog."; $string = preg_replace("/dog/", "cat", $string); echo $string; ?>
Result:
Report an issue