Jump to content

[SOLVED] upper case more than one word ?


EchoFool

Recommended Posts

Hi there,

 

Just a quick question i been using ucfirst(); but have realised it only capatalises the first letter of the string, but this is flawed for me because the string may have more than one word such as:

 

Joe bloggs < this is what it would show... but i need it to capatalise the first letter of every word because its a name so it would be Joe Bloggs.

 

How do i do it because ucfirst(); doesn't do it :(

Link to comment
https://forums.phpfreaks.com/topic/158677-solved-upper-case-more-than-one-word/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.