I am using ucword function to uppar case only first word as this ucwords(strtolower($var))
but sometimes I want the word to be uppar case. Please see the below example to understand clearly.
$var = "class iii";
echo ucwords(strtolower($var));
gives as **Class Iii or Class Ii or Class Iv**
What I want it should display as Class III or Class II or Class IV
to look beautiful