note 41792 deleted from function.imap-mime-header-decode by didou
| From: | didou@php.net | Date: | Mon, 30 Aug 2004 23:21:12 +0000 |
| Subject: | note 41792 deleted from function.imap-mime-header-decode by didou | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-75694@lists.php.net to get a copy of this message | ||
Note Submitter: Pawel Tomicki <pafka at klub dot chip dot pl>
----
It's my simple example of decode_iso88591() function:
function decode_iso88591($string){
if ( strpos(strtolower($string), '=?iso-8859-1')===false ) return $string;
$string=substr($string, 0, strrpos($string, '?') );
$string=substr($string, strrpos($string, '?')+1 );
return base64_decode($string);
}