Hi All,
im trying to find a way of checking a string to see if it contains a word held in an array. If it is in the array i would like it to be replaced with cencored.
the code if been working with is
<?php
$myString = "Hello, there!";
if ( strstr( $myString, 'Goodbye' ) ) {
echo "Text found";
} else {
echo "Text not found";
}
?>