SitePoint Sponsor

User Tag List

Results 1 to 3 of 3

Thread: Adding ucwords() To The Following Code?

  1. #1
    SitePoint Enthusiast AimyThomas's Avatar
    Join Date
    Sep 2011
    Posts
    46
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)

    Adding ucwords() To The Following Code?

    Hi,

    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

    Thanks in Advance

  2. #2
    Grüße aus'm Pott
    SitePoint Award Recipient Pullo's Avatar
    Join Date
    Jun 2007
    Location
    Germany
    Posts
    2,461
    Mentioned
    39 Post(s)
    Tagged
    1 Thread(s)
    This should work:
    Code PHP:
    $TMPL['title'] = ucwords($name).' - Actor - Trailerpulse';
    How well do you know your JavaScript from your jQuery?
    Check out SitePoint's latest JavaScript challenge


    My blog

  3. #3
    SitePoint Guru silver trophy JamesColin's Avatar
    Join Date
    May 2009
    Location
    Jomtien, Pattaya, Thailand
    Posts
    904
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    I'm sure even Bill Gates would know the answer..
    Hope you've found an answer with that many postings..
    Do you really need traffic? Where to? What for?
    If you really do need traffic then stop messing around!
    Advertise on my sites today: She Told Me & Best Reviewer :
    200,000+ UV / Month

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
  •