# Adding word wrap to a spliti array?

**URL:** <https://forum.kirupa.com/t/adding-word-wrap-to-a-spliti-array/230010>\
**Category:** Uncategorized\
**Created:** [June 22, 2007, 12:01am UTC](https://forum.kirupa.com/t/adding-word-wrap-to-a-spliti-array/230010 "2007-06-22T00:01:39Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Flash\_Man1](https://avatars.discourse-cdn.com/v4/letter/f/8797f3/32.png) [@Flash\_Man1](https://forum.kirupa.com/u/Flash_Man1)\
**Post date:** [June 22, 2007, 12:01am UTC](https://forum.kirupa.com/t/adding-word-wrap-to-a-spliti-array/230010/1 "2007-06-22T00:01:39Z")

</div>

Hey all,

I have 20 words each split using “spliti” and I need to add word wrap to this or a line width so it will wrap to the next line…as it does not wrap currently.

Any ideas how to do this?  
Here is some code that I have:

```php
$chunks = spliti (",", $string, 20);

```

Thanks in advance
