News:

SMF - Just Installed!

Main Menu

Replace the characters

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

Previous topic - Next topic

KingSparta

Replace the characters "WORLD" (case-insensitive) in the string "Hello world!" with "Peter":

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