How do I use preg_replace to return part of a string?

Lanny

New Member
I am trying to return mime types from an array. I have these strings in an array:\[code\]application/pdfimage/jpgimage/jpeg\[/code\]What I want to end up with is:\[code\]pdfjpgjpeg\[/code\]
 
Back
Top