Go Back   CodingForums.com > :: Server side development > PHP

Before you post, read our: Rules & Posting Guidelines

Reply
 
Thread Tools Rate Thread
Enjoy an ad free experience by logging in. Not a member yet? Register.
Old 10-06-2012, 03:19 AM   PM User | #1
Trailerpulse
New to the CF scene

 
Join Date: Oct 2012
Posts: 4
Thanks: 1
Thanked 0 Times in 0 Posts
Trailerpulse is an unknown quantity at this point
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?
Trailerpulse is offline   Reply With Quote
Old 10-06-2012, 04:43 AM   PM User | #2
Fou-Lu
God Emperor


 
Fou-Lu's Avatar
 
Join Date: Sep 2002
Location: Saskatoon, Saskatchewan
Posts: 15,635
Thanks: 4
Thanked 2,448 Times in 2,417 Posts
Fou-Lu is a name known to allFou-Lu is a name known to allFou-Lu is a name known to allFou-Lu is a name known to allFou-Lu is a name known to allFou-Lu is a name known to all
PHP Code:
$TMPL['title'] = ucwords($name) . ' - Actor - Trailerpulse'
Will do it for you.
Fou-Lu is offline   Reply With Quote
Users who have thanked Fou-Lu for this post:
Trailerpulse (10-06-2012)
Old 10-06-2012, 04:46 AM   PM User | #3
Trailerpulse
New to the CF scene

 
Join Date: Oct 2012
Posts: 4
Thanks: 1
Thanked 0 Times in 0 Posts
Trailerpulse is an unknown quantity at this point
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.
Trailerpulse is offline   Reply With Quote
Reply

Bookmarks

Tags
php, ucwords

Jump To Top of Thread


Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +1. The time now is 04:07 AM.


Advertisement
Log in to turn off these ads.