Link to home
Start Free TrialLog in
Avatar of mcgeorge40
mcgeorge40

asked on

PHP- capitalize all words in a string

Hello!  I've been sitting here Googling this, but getting frustrated because I can't find the PHP code for what I want to do specifically:

$string = I want to CAPITALIZE all WOrds IN a sTRING

How can I make the above string read:

$string = I Want To Capitalize All Words In A Strong

Thank you in advance!!!
ASKER CERTIFIED SOLUTION
Avatar of glcummins
glcummins
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of mcgeorge40
mcgeorge40

ASKER

Thanks.  I actually had that code...  And I realized I had a typo.  Darn!  Thank you for the quick response.
With PHP's schizophrenic function-naming conventions, typos are often easy to come by, and difficult to spot. I'm glad it is working for you now!