Replace the characters "world" in the string "Hello world!" with "Peter":
`<?php
echo str_replace("world","Peter","Hello world!");
?>
by გიორგი ბაკაშვილი
4 years ago
PHP
String
PHP official doc
0
Pro tip: use ```triple backticks around text``` to write in code fences