...

View Full Version : Adding ucwords() To The Following Code?



Trailerpulse
10-06-2012, 03:19 AM
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?

Fou-Lu
10-06-2012, 04:43 AM
$TMPL['title'] = ucwords($name) . ' - Actor - Trailerpulse';

Will do it for you.

Trailerpulse
10-06-2012, 04:46 AM
Worked perfectly. Thanks a bunch.




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

Will do it for you.



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum