word-wrap Using CSS or PHP

Word wrap is very important functionality for any websites which has many data, Normally developers does not include word wrap functionality, but when the data length increase the container width then data is overlapping next container, to avoid this issue we need to use word wrap functionality,there are many method to use word wrap, you can use server side as well as client side with help of CSS3.

Also checkout other tutorials of CSS,

Wordwrap Using wordwrap() PHP function

In below PHP script i am using PHP wordwrap() function.

Wrapping Long Text Content Using CSS

we are using CSS3 property word-wrap.
[code type=css]
word-wrap: break-word;