-1
In the textarea field, if the user type everything mixed (uppercase and minuscule) in several paragraphs, I need only the first letter of each paragraph capitalized.
If you use ucfirst(strtolower($text)); only the first letter is capitalized for the entire string
how to do it in php before saving?
Thanks in advance for your help
You are saving the word "Array". I only took print_r($text). Thank you
– Geo
I just took the test here, it’s working properly. The "problem" of saving the word array is because as I mentioned in the first line of code, I transform the string of the <textarea> into an array, where each paragraph is an item, to view the array you should use precisely the print_r(), just the part you took... I’ll edit the answer and put even more chewy...
– MichellHenrique
I solved it with implode. I posted it as a response. Your help has served me to research and broaden my horizons. Thank you
– Geo
Good alternative implode to turn the array into string again. I took a look at the answer you posted, only the curiosity title, & de &$paragrafo is no longer needed as there will be no change in the array during foreach. Hug!
– MichellHenrique