Jump to content


Photo

Capitalization


  • Please log in to reply
2 replies to this topic

#1 Twentyoneth

Twentyoneth
  • Members
  • PipPipPip
  • Advanced Member
  • 118 posts
  • LocationGlasgow, KY

Posted 23 April 2006 - 02:54 AM

I have this code to pull a variable from the address:

$view = $_GET['view'];

But that variable will be a persons name, so how do I auto capitalize it, just the first letter?

#2 KrisNz

KrisNz
  • Members
  • PipPipPip
  • Advanced Member
  • 271 posts
  • LocationAuckland, New Zealand

Posted 23 April 2006 - 02:57 AM

[!--quoteo(post=367584:date=Apr 23 2006, 12:54 PM:name=Twentyoneth)--][div class=\'quotetop\']QUOTE(Twentyoneth @ Apr 23 2006, 12:54 PM) View Post[/div][div class=\'quotemain\'][!--quotec--]
I have this code to pull a variable from the address:

$view = $_GET['view'];

But that variable will be a persons name, so how do I auto capitalize it, just the first letter?
[/quote]
[a href=\"http://nz.php.net/ucfirst\" target=\"_blank\"]ucfirst[/a]

#3 Twentyoneth

Twentyoneth
  • Members
  • PipPipPip
  • Advanced Member
  • 118 posts
  • LocationGlasgow, KY

Posted 23 April 2006 - 03:13 AM

[!--quoteo(post=367585:date=Apr 22 2006, 10:57 PM:name=KrisNz)--][div class=\'quotetop\']QUOTE(KrisNz @ Apr 22 2006, 10:57 PM) View Post[/div][div class=\'quotemain\'][!--quotec--]
[a href=\"http://nz.php.net/ucfirst\" target=\"_blank\"]ucfirst[/a]
[/quote]


Thanks, I guess I didnt check well enough on php.net




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users