Is there a built-in php function, or a simple (efficient!) way to combine built-in functions, to give a string sentence case (“Sentence one. Sentence two.”)?
PHP has similar built-in functions, but none that I can find for my it to my purposes:
ucfirst(strtolower("SENTENCE ONE. AND HERE'S TWO.")) returns “Sentence one. and here’s two.”; ucwords(strtolower("SENTENCE ONE. AND HERE'S TWO.")) “Sentence One. And Here’s Two.”
This will preserve existing proper noun capitals, acronyms and abbreviations.