SitePoint Sponsor

User Tag List

Results 1 to 2 of 2
  1. #1
    SitePoint Enthusiast
    Join Date
    Apr 2003
    Location
    New York
    Posts
    87
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Quick question - how to capitalize first letter of a word

    Just one quick thing. How do you capitalize the first letter of a word?

    like "hello" to "Hello"

    I'm pretty sure its possible just not sure how to use the functions.

    Thanks.
    TightBeatZ.com: Free Underground Hip-Hop loops
    Pregaming.com: Game Videos and Trailers

  2. #2
    SitePoint Wizard
    Join Date
    Jan 2001
    Location
    Grand Rapids, MI
    Posts
    1,284
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    PHP Code:
    $word "hello";
    $word ucfirst($word); // Hello 


Bookmarks

Posting Permissions

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