SitePoint Sponsor

User Tag List

Results 1 to 3 of 3
  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
    Gre aus'm Pott gold trophysilver trophybronze trophy
    Pullo's Avatar
    Join Date
    Jun 2007
    Location
    Germany
    Posts
    5,890
    Mentioned
    211 Post(s)
    Tagged
    12 Thread(s)
    This should work:
    Code PHP:
    $TMPL['title'] = ucwords($name).' - Actor - Trailerpulse';

  3. #3
    SitePoint Guru silver trophy JamesColin's Avatar
    Join Date
    May 2009
    Location
    Jomtien, Pattaya, Thailand
    Posts
    910
    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
  •