News:

SMF - Just Installed!

Main Menu

Replace the characters

Started by KingSparta, Dec 16, 2023, 02:30 PM

Previous topic - Next topic

KingSparta

Replace the characters "world" in the string "Hello world!" with "Peter":

<?php
echo str_replace("world","Peter","Hello world!");
?>