I’d like to capitalize a string like:
¿"hello"?
I want my function to return
¿"Hello"?
I’ve tried with regex and preg_match, with no luck…
Here it is my previous question, related with this one:
“preg_match is matching two characters when it should only match one”
Thank you all!
You can do it using preg_replace_callback: