I have a basic string question in PHP.
Let's say I have a variable $story:
$story = 'this story is titled and it is really good';
How would I go about adding a string after 'titled' and before 'and'? If I had the title in a another variable, let say
$title = 'candy';
What function or method could I use to do this?
$story = 'this story is titled and it is really good';
$title = 'candy';
// do something
var_dump($story === 'this story is titled candy and it is really good'); // TRUE