/    Sign up×
Community /Pin to ProfileBookmark

Uppercase text using php

Is there a way to convert text so it will change to all uppercase letters? CSS won’t work in my situation, because it only appears as uppercase. I need it to actually be uppercase. I can only find how to check for uppercase. Does anyone know how to change text like that?

to post a comment
PHP

2 Comments(s)

Copy linkTweet thisAlerts:
@schizoAug 03.2005 — [URL=http://us2.php.net/manual/en/function.strtoupper.php]strtoupper[/URL]
Copy linkTweet thisAlerts:
@LocalHeroauthorAug 04.2005 — Maybe I'm missing something, but I can't seem to get it to work. This is my code:

[CODE]while( $row= mysql_fetch_array( $rs) )
{
echo( "<div align='center'><h2>" . "Order Number: " . $row["orderid"] . "</h2>");
echo( "<INPUT name='line1' type='text' value='" . $row["firstname"] . ' ' . ' ' . $row["lastname"] . "'>" . "<br>");
echo( "<INPUT name='line2' type='text' value='" . $row["s_address"] . "'>" . "<br>");
echo( "<INPUT name='line3' type='text' value='" . $row["s_city"] . ', ' . ' ' . $row["s_state"] . ' ' . ' ' . $row["s_zipcode"] . "'>" . "<br></div>");

}[/CODE]


Why can't I have [CODE]strtoupper( $row["firstname"] )[/CODE] in the middle? How would I return these values as uppercase?
×

Success!

Help @LocalHero spread the word by sharing this article on Twitter...

Tweet This
Sign in
Forgot password?
Sign in with TwitchSign in with GithubCreate Account
about: ({
version: 0.1.9 BETA 5.20,
whats_new: community page,
up_next: more Davinci•003 tasks,
coming_soon: events calendar,
social: @webDeveloperHQ
});

legal: ({
terms: of use,
privacy: policy
});
changelog: (
version: 0.1.9,
notes: added community page

version: 0.1.8,
notes: added Davinci•003

version: 0.1.7,
notes: upvote answers to bounties

version: 0.1.6,
notes: article editor refresh
)...
recent_tips: (
tipper: @AriseFacilitySolutions09,
tipped: article
amount: 1000 SATS,

tipper: @Yussuf4331,
tipped: article
amount: 1000 SATS,

tipper: @darkwebsites540,
tipped: article
amount: 10 SATS,
)...