May 25, 2004 #1 rjonesX Technical User Joined Jun 18, 2001 Messages 56 Location US In Perl you can force the next letter to be printed uppercase in a string using the \u command. Any idea if this can be accomplished in PHP?
In Perl you can force the next letter to be printed uppercase in a string using the \u command. Any idea if this can be accomplished in PHP?
May 25, 2004 #2 sleipnir214 Programmer Joined May 6, 2002 Messages 15,350 Location US That obscure functionality of the print statement is not implemented in PHP. PHP does, however, have a wealth of fuctions for making all or part of a string uppercase: strtoupper(), ucfirst() and ucwords(). For the only possible use I can imagine for the "\u" operator, ucfirst() might be the first function to look at. Want the best answers? Ask the best questions! TANSTAAFL!! Upvote 0 Downvote
That obscure functionality of the print statement is not implemented in PHP. PHP does, however, have a wealth of fuctions for making all or part of a string uppercase: strtoupper(), ucfirst() and ucwords(). For the only possible use I can imagine for the "\u" operator, ucfirst() might be the first function to look at. Want the best answers? Ask the best questions! TANSTAAFL!!
May 25, 2004 Thread starter #3 rjonesX Technical User Joined Jun 18, 2001 Messages 56 Location US PERFECT! This is very useful for working with xml and using node names in lowercase but wanting them to print out with the correct capitalization. Thanks so much! Upvote 0 Downvote
PERFECT! This is very useful for working with xml and using node names in lowercase but wanting them to print out with the correct capitalization. Thanks so much!