Jump to content

[SOLVED] Help With Strings


whelpton

Recommended Posts

Ok, I am using strings to display email contents, I was wondering if there's any way of making my subject string ($strSubject) only display a certain number of characters, for example 25, so that it dosnt break my table formatting.

 

The code I am using is below.

 

$arrMessage = $objPop3->getParsedHeaders($objPop3->numMsg()-$i);

$strDate = $arrMessage['Delivery-date'];

$strFrom = $arrMessage['From'];

$strReplyTo = $arrMessage['Reply-To'];

$strSubject = (strlen($arrMessage['Subject'])<1)?'(No Subject)':$arrMessage['Subject'];

 

Thanks

Link to comment
https://forums.phpfreaks.com/topic/112448-solved-help-with-strings/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.