PHP String Replace

PHOTO EMBED

Mon Aug 15 2022 14:12:29 GMT+0000 (Coordinated Universal Time)

Saved by @kalehm #undefined

<!DOCTYPE html>
<html>
<body>
​
<p>Search the string "Hello World!", find the value "world" and replace it with "Peter":</p>
​
<?php
echo str_replace("world","Peter","Hello world!");
?>
​
</body>
</html>
​
content_copyCOPY

https://www.w3schools.com/php/phptryit.asp?filename