Results 1 to 8 of 8
-
26th Oct 2012, 07:10 PM #1OPMember
Uppercase Words
Hello i need a PHP code to make certain words like: hd, pdf, dvd, etc... to appear like: HD, PDF, DVD.
Green Arrow Reviewed by Green Arrow on . Uppercase Words Hello i need a PHP code to make certain words like: hd, pdf, dvd, etc... to appear like: HD, PDF, DVD. Rating: 5
-
26th Oct 2012, 07:12 PM #2MemberWebsite's:
wscripts.net damnlolscript.com lulzjet.comUse http://php.net/manual/en/function.strtoupper.php
you can make an array with the words you want to modify and check if the word is in that array
-
27th Oct 2012, 10:42 AM #3Too busy :|Website's:
L337Fx.com BeastieBay.netDepends on which data variable you want to uppercase. Tell us the variable used to displaying those certain words.
PHP Code:<?php
echo strtoupper($string);
?>
-
28th Oct 2012, 09:02 PM #4OPMember
Thanks for the help, think i might be able to figure it out now
-
28th Oct 2012, 10:55 PM #5Member
Or you can do it using CSS:
Code:.class{ text-transform: uppercase;}
-
29th Oct 2012, 08:59 AM #6Member
@bjskid: no, if he has some text and wants to capitalize certain words in it, CSS alone won't be enough, only if he already has some sort of markup around those words. Else he needs a scripting language, like JS or PHP to find the words.
-
29th Oct 2012, 09:32 AM #7Member
-
4th Nov 2012, 05:33 AM #8ProbationWebsite's:
swooshleads.com
Sponsored Links
Thread Information
Users Browsing this Thread
There are currently 1 users browsing this thread. (0 members and 1 guests)
Similar Threads
-
Recommend me some words
By RodneyTrot in forum General DiscussionReplies: 19Last Post: 1st Sep 2012, 03:31 AM -
[IPB] Bad words Filter
By immu in forum Webmaster ResourcesReplies: 0Last Post: 9th Jun 2012, 04:30 AM -
Why are bad words bad?
By LEVAC109 in forum General DiscussionReplies: 2Last Post: 28th Feb 2011, 09:53 PM -
What The Words Really Mean... just a little fun
By Rosaanette in forum General DiscussionReplies: 6Last Post: 23rd May 2010, 06:12 PM -
how to replace bad words?
By wman in forum vBulletinReplies: 2Last Post: 19th Feb 2009, 12:18 PM
themaLeecher - leech and manage...
Version 4.94 released. Open older version (or...