php foreach loop help

Posted by sico87 on Stack Overflow See other posts from Stack Overflow or by sico87
Published on 2010-03-20T13:00:33Z Indexed on 2010/03/20 13:21 UTC
Read the original article Hit count: 509

Filed under:
|
|

I am working with a PHP foreach loop and I am needing it to out some specific HTML depening on which array value it is spitting out.

Everytime that the foreach loop hits a $content['contentTitle'] i need it to insert a new table and then from there carry on essentially what I am what is for the loop to spit out a new table every a new contentTitle is found, but then add the rest of the data in the array as tr and td's

© Stack Overflow or respective owner

Related posts about php

Related posts about loops