PHP: combine text after explode

Robbyman

New Member
Using explode I broke up the text into pieces, then us the foreach to look for a few thing in the text.\[code\]$pieces = explode(' ', $text);foreach ($pieces as $piece) { Some Modification of the piece}\[/code\]My questions so how can I put those pieces back together? So I can wordwrap the text.Some like this:\[code\]piece 1 + piece 2 + etc\[/code\]
 
Back
Top