# Wordwrap in PHP?

**URL:** <https://forum.kirupa.com/t/wordwrap-in-php/232951>\
**Category:** Uncategorized\
**Created:** [July 18, 2007, 11:23pm UTC](https://forum.kirupa.com/t/wordwrap-in-php/232951 "2007-07-18T23:23:48Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![vmarvaso](https://avatars.discourse-cdn.com/v4/letter/v/df788c/32.png) [@vmarvaso](https://forum.kirupa.com/u/vmarvaso)\
**Post date:** [July 18, 2007, 11:23pm UTC](https://forum.kirupa.com/t/wordwrap-in-php/232951/1 "2007-07-18T23:23:48Z")

</div>

can anyone help with a super noob question??? im pulling a field named “desc” from MySQL and using PHP to output it…

```php

     <? echo $desc; ?>

```

but it outputs the “desc” in a single line a mile long!

i want the text to wrap within the

…

is that a property of the table like this:

```auto

STYLE="table-layout:fixed";

```

or is there a wordwrap in php???

maybe i can solve this using CSS???
