Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 3 of 3
  1. #1
    Regular Coder dniwebdesign's Avatar
    Join Date
    Dec 2003
    Location
    Carrot River, Saskatchewan
    Posts
    845
    Thanks
    15
    Thanked 10 Times in 10 Posts

    Capitilize first letter...

    ummm, probably a simple question but if I got something like:

    <?php echo $row["hteam"]; ?> it displays "thunder"...

    How can I capitilize the first letter so it's "Thunder"
    Dawson Irvine
    CEO - DNI Web Design
    http://www.dniwebdesign.com

  • #2
    New Coder
    Join Date
    Apr 2004
    Location
    Texas
    Posts
    60
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Here's a good example of doing this with CSS

    Here's a good example of doing this with CSS
    http://www.javascriptkit.com/howto/pseudoletter.shtml

    There's probably a way to do it pure php though....

    Regards,
    Jason B

  • #3
    New to the CF scene
    Join Date
    Apr 2004
    Posts
    1
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Quote Originally Posted by dniwebdesign
    ummm, probably a simple question but if I got something like:

    <?php echo $row["hteam"]; ?> it displays "thunder"...

    How can I capitilize the first letter so it's "Thunder"

    You may use the function: ucfirst()
    More details found on this link:

    http://php.dataplus.se/manual/en/function.ucfirst.php


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •