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
    New to the CF scene
    Join Date
    Oct 2012
    Posts
    4
    Thanks
    1
    Thanked 0 Times in 0 Posts

    Question Adding ucwords() To The Following Code?

    I'm trying to add ucwords() to the following code so that is uses upper-cases for the words that $name spits out.

    $TMPL['title'] = ''.$name.' - Actor - Trailerpulse';

    I've tried implementing it myself but can't seem to figure out the correct implementation.

    Any suggestions?

  • #2
    God Emperor Fou-Lu's Avatar
    Join Date
    Sep 2002
    Location
    Saskatoon, Saskatchewan
    Posts
    16,987
    Thanks
    4
    Thanked 2,660 Times in 2,629 Posts
    PHP Code:
    $TMPL['title'] = ucwords($name) . ' - Actor - Trailerpulse'
    Will do it for you.

  • Users who have thanked Fou-Lu for this post:

    Trailerpulse (10-06-2012)

  • #3
    New to the CF scene
    Join Date
    Oct 2012
    Posts
    4
    Thanks
    1
    Thanked 0 Times in 0 Posts
    Worked perfectly. Thanks a bunch.

    Quote Originally Posted by Fou-Lu View Post
    PHP Code:
    $TMPL['title'] = ucwords($name) . ' - Actor - Trailerpulse'
    Will do it for you.


  •  

    Tags for this Thread

    Posting Permissions

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