Adding ucwords() To The Following Code?


 
Thread Tools Search this Thread
Top Forums Programming Adding ucwords() To The Following Code?
# 1  
Old 10-31-2012
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.
Code:
 
  $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

Last edited by vbe; 10-31-2012 at 06:50 AM.. Reason: code tags...
# 2  
Old 11-01-2012
What language is this?
# 3  
Old 11-01-2012
Quote:
Originally Posted by Corona688
What language is this?
Looks like PHP....
# 4  
Old 11-01-2012
PHP

Quote:
Originally Posted by AimyThomas
Hi,

I'm trying to add ucwords() to the following code so that is uses upper-cases for the words that $name spits out.
Code:
 
  $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
Please post the entire code function and what the inputs and expected outputs are.
# 5  
Old 11-01-2012
Not knowing what you are really needed to do; maybe try:

PHP Code:
$TMPL['title'] = ucwords($name.' - Actor - Trailerpulse'); 
Login or Register to Ask a Question

Previous Thread | Next Thread

8 More Discussions You Might Find Interesting

1. UNIX for Beginners Questions & Answers

Adding to an array in an external file, and adding elements to it.

I have an array in an external file, "array.txt", which contains: char *testarray={"Zero", "One", "Two", "Three", "Four", "Five", "Six", "Seven", "Eight", "Nine"};I want to be able to add an element to this array, and have that element display, whenever I call it, without having to recompile... (29 Replies)
Discussion started by: ignatius
29 Replies

2. Shell Programming and Scripting

Adding the code after searching the string

Hi All, please suggest me.. How to add the text from one file to another file and need to add the code after 3 lines of below searched line . sample code in standard file: <corecom:Description xml:id="id_2607"> <xsl:value-of... (6 Replies)
Discussion started by: vijayko
6 Replies

3. UNIX for Dummies Questions & Answers

Adding

my shell script: #!/bin/ksh date +%d > /tmp/day.log day=`tail /tmp/day.log` ############################ for example: date +%d shows me 05 i want to add 14 days to 05 into my above script. bc 5+15 19 but i am not sure how to put into above script. (5 Replies)
Discussion started by: lawsongeek
5 Replies

4. Shell Programming and Scripting

Adding incomplete HTML code to a file

Hi folks, I am scraping data from the Internet that has the format similar to what's on this page -- Trigger Notice Report The code I've written for scraping and storing results works fine when the HTML code is well written, but not when there are mistakes. In particular, the code breaks when... (4 Replies)
Discussion started by: ksk
4 Replies

5. AIX

adding new ip

Hi Admins, I was told to add new ip,mask and gateway to my 3rd nic.so i prepared a plan doing the same via smitty. now i need to know do i plumb and unplumb before adding ip. plz suggest Regards newaix (1 Reply)
Discussion started by: newaix
1 Replies

6. Shell Programming and Scripting

Adding new lines to a file + adding suffix to a pattern

I need some help with adding lines to file and substitute a pattern. Ok I have a file: #cat names.txt name: John Doe stationed: 1 name: Michael Sweets stationed: 41 . . . And would like to change it to: name: John Doe employed permanently stationed: 1-office (7 Replies)
Discussion started by: hemo21
7 Replies

7. UNIX for Dummies Questions & Answers

adding

Hi All i need a add recored like DateOfDU2=245,Time=00326 (in milli secounds ) DateOfDU2=245,Time=00347 DateOfDU2=245,Time=00258 DateOfDU2=246,Time=00325 DateOfDU2=246,Time=00408 DateOfDU2=246,Time=00257 DateOfDU2=247,Time=00037 DateOfDU2=247,Time=00417 DateOfDU2=247,Time=00420... (1 Reply)
Discussion started by: nalakaatslt
1 Replies

8. UNIX for Advanced & Expert Users

adding zero's

Hi I am comparing two files, 100th column have formatting issue i mean 1 file have scale 4 and anothe file scale 2 ,if scale 2 need to add two zeros.Please any idea how to add two zers to 100th coulmn if scale is 2 file 1 .................1234.2000 file2 ................1234.20 ... (3 Replies)
Discussion started by: mohan705
3 Replies
Login or Register to Ask a Question