How can I make the content in a string to upper case but not the html entities in it? Is it possible?

echo strtoupper($str);

I want to produce this,


but I get this with strtoupper()


Accepted Answer

I know you haven't listed CSS in your tags, but most of the time it is easier to leave this to the client side (if you only intended this string for browser display).

Applying CSS text-transform: uppercase; will do this for you.

Written by bazmegakapa
This page was build to provide you fast access to the question and the direct accepted answer.
The content is written by members of the community.
It is licensed under cc-wiki