So I have some sentences I am inserting into a database with some auto-correction processes. The following sentence:
$sentence = \"Is this dog your\'s because it
You are probably looking for ucwords instead (Demo):
$sentence = "Is this dog your's because it can't be mine"; echo ucwords($sentence); # Prints "Is This Dog Your's Because It Can't Be Mine"