Displaying a very long line of string into several lines

Hi,

Is there a built in function in Yii that can display a very long line of string (without any space chars nor new line) into several lines?

E.g.

I have 250 long string "ssssssssssss…sssssss"

and I want to display it max 50 chars per line:

ssssssssssssssssssssssssssssssssssssssssssssssssss

ssssssssssssssssssssssssssssssssssssssssssssssssss

ssssssssssssssssssssssssssssssssssssssssssssssssss

Thanks for your help

You can use php wordwrap or css code.

Great, Thanks Sampa!

I’ve looked too far, expecting it available in Cformatter class :)