# PHP. break string

**URL:** <https://forum.kirupa.com/t/php-break-string/151636>\
**Category:** programming\
**Created:** [June 16, 2005, 11:04pm UTC](https://forum.kirupa.com/t/php-break-string/151636 "2005-06-16T23:04:36Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![imagined](https://avatars.discourse-cdn.com/v4/letter/i/a87d85/32.png) [@imagined](https://forum.kirupa.com/u/imagined)\
**Post date:** [June 16, 2005, 11:04pm UTC](https://forum.kirupa.com/t/php-break-string/151636/1 "2005-06-16T23:04:36Z")

</div>

Ok. I have a database with a column where I add products. One of the results looks like this:

PRODUCT NAME  
Don Quijote statue, Wooden Ladder

another result:

PRICE:  
78.99, 35.99

how could I break the string, so that i create a table like this:

\<TABLE\>  
\<TR\>  
\<TD\>Don Quijote Statue\</TD\>\<TD\>78.99\</TD\>  
\<TD\>Wooden Ladder\</TD\>\<TD\>35.99\</TD\>  
\</TR\>  
\</TABLE\>

Please help. Thanks in advance.

Leo :hair:
