Hello,

Is there any way how to use function mb_strtolower for all characters in the word except first, so that the first character stays as it is?

Thanks.

    knowj, thank you for your reply but this is not what I am looking for.

    If I use a combination of ucfirst(); and strtolower(); all first characters will be come uppercase. I need a function which changes all characters to lowercase but leaves the first character of each word as it is.

    I need it because some users are absessed with writing everything in caps lock.

      explode on space (if your happy that is a word boundary) then loop through each word use substr() to split them first letter and rest, process, glue back together. sounds painful and not that fast.

        does it need to be done in PHP? you can use CSS on the <p> or <div> displaying the paragraph

        <style>
        .lowercase {text-transform:lowercase;}
        p:first-letter {text-transform:uppercase;}
        </style>
        
        <p class="lowercase">loREM iPSuM DoLoR.</p>
        
          Write a Reply...