Str_replace array
If you want replace one or more words from text, use php str_replace() function.
Put text in the array
<?php
$text="Hello, this is simple Phptick example function.";
$from = array('Hello,', 'Phptick');
$to = array('Hey!', 'URL Removed');
echo str_replace($from, $to, $text);
Testing how it works
<?php echo str_replace($from, $to, $text); ?>
output: Hey! this is simple URL Removed example function.
Testing how it works without array
<?php
$text="Hello, this is simple Phptick example function.";
echo str_replace("Hello,", "Hey", $text); ?>
output: Hey! this is simple Phptick example function.
Now if you need, you can find and easy replace all text.
More tutorials