> Is there a prewritten function for capitalizing the first > letter of each word in a string except for the common > words you wouldn't want to capitalize in a title? Like > Come Learn the Facts From an Industry Leader None that I've seen. But it wouldn't be hard to write a function that takes a string, passes that string to ucwords() and then you can run through a pre-defined array and just do an ereg_replace() on those words you want to remain lowercase... Or something like that... Chris
- [PHP] ucwords Except 'The' 'And' etc? Jeff Oien
- Re: [PHP] ucwords Except 'The' 'And' etc? Richard Baskett
- RE: [PHP] ucwords Except 'The' 'And' etc? Boget, Chris
- RE: [PHP] ucwords Except 'The' 'And' etc? Steve Edberg
- [PHP] PHP and Apache Jay Paulson
- Re: [PHP] PHP and Apache Rasmus Lerdorf
- RE: [PHP] ucwords Except 'The' 'And' etc? Mark Maggelet
- RE: [PHP] ucwords Except 'The' 'And' etc? Jeff Oien
- RE: [PHP] ucwords Except 'The' 'And'... Steve Edberg