I need to know how i can make a string like "hello"
to "Hello"
using PHP?
I just need the first character to be Upper
use the function ucwords()
; This will do every word in the string, using ucfirst()
will just do the first word.
echo ucwords('hello my name is jim');
// Hello My Name Is Jim
echo ucfirst('hello my name is jim');
// Hello my name is jim
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With