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 2 of 2
  1. #1
    Regular Coder
    Join Date
    Jun 2002
    Posts
    905
    Thanks
    23
    Thanked 5 Times in 5 Posts

    Changing the first letter of a string variable to uppercase!

    Hey,
    ok argh,
    like it says.. how would i change the first character of $link to a upper case if its not already?
    thanks everyone.
    sir p

  • #2
    Regular Coder
    Join Date
    Jul 2002
    Location
    London, UK
    Posts
    126
    Thanks
    0
    Thanked 0 Times in 0 Posts
    There's actually a function that does just that... ucfirst()

    So in this instance you'd do:

    $link = ucfirst($link);


  •  

    Posting Permissions

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