Adding ucwords() To The Following Code?

Discussion in 'PHP' started by AimyThomas, Oct 30, 2012.

  1. #1
    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
     
    AimyThomas, Oct 30, 2012 IP
  2. plussy

    plussy Peon

    Messages:
    152
    Likes Received:
    5
    Best Answers:
    9
    Trophy Points:
    0
    #2
    have you tried

    
    $TMPL['title'] = ucwords($name).' - Actor - Trailerpulse';
    
    PHP:
     
    plussy, Oct 31, 2012 IP
  3. JamesColin

    JamesColin Prominent Member

    Messages:
    7,874
    Likes Received:
    164
    Best Answers:
    1
    Trophy Points:
    395
    Digital Goods:
    1
    #3
    JamesColin, Oct 31, 2012 IP