I have a string and I want to remove the 'is' word from the string, for that I am using a trim function. But I am not getting the desired result.
Here is my code.
$string1 = "Life is chess.";
$string3 = trim($string1,"is");
Life is chess.