And if you want :

  $str = 'This is a STRING!';

To turn into    :

  $str = 'This Is A String!';

Then do         :

  $str = ucwords(strtolower($str));

Regards,
Philip


On Sat, 23 Jun 2001, Data Driven Design wrote:

> Use the ucwords() function
> 
> http://www.php.net/manual/en/function.ucwords.php
> 
> Data Driven Design
> P.O. Box 1084
> Holly Hill, Florida 32125-1084
> 
> http://www.datadrivendesign.com
> http://www.rossidesigns.net
> ----- Original Message -----
> From: Jason Katz-Brown <[EMAIL PROTECTED]>
> To: <[EMAIL PROTECTED]>
> Sent: Saturday, June 23, 2001 1:46 PM
> Subject: [PHP] Making a string title case ?
> 
> 
> > Hi
> >
> > Whats the best way to make $string title case? In other words, turn "this
> is
> > a string" into "This Is A String" ?
> >
> > Thanks a bunch
> >
> > Jason
> >
> > --
> > PHP General Mailing List (http://www.php.net/)
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
> > To contact the list administrators, e-mail: [EMAIL PROTECTED]
> >
> >
> 
> 
> -- 
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> To contact the list administrators, e-mail: [EMAIL PROTECTED]
> 


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]

Reply via email to