php remove text including character code example
Example: php remove text from string
<?php
//Replace the characters "world" in the string "Hello world!" with "Peter":
echo str_replace("world","Peter","Hello world!");
?>
<?php
//Replace the characters "world" in the string "Hello world!" with "Peter":
echo str_replace("world","Peter","Hello world!");
?>