Run ❯
Get your
own PHP
server
Result Size:
625 x 565
×
Change Orientation
Change Theme, Dark/Light
Go to Spaces
<!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>
Search the string "Hello World!", find the value "world" and replace it with "Peter":
Hello Peter!