Brief background:
I am implementing a ticket system that requires the imap c-client functions, but my hosting company doesn't have the imap extension installed, let alone enabled, so I am working around it by using Zend\Mail instead. Because I don't have the imap c-client functions available to me, I am working on workarounds and have been relatively successful so far, but because my knowledge of php is rudimentary at best it is slow going and I have a few questions.
Using Zend\Mail the field Content-Type looks like this:
Content-Type: text/html; charset=ISO-8859-1
I can determine the MIME Content-Type by using:
strtok($part->contentType, ';')
Is there an easy means for pulling out the charset from that field?