note 41803 modified in function.imap-mime-header-decode by didou

From: Date: Mon, 30 Aug 2004 23:22:13 +0000
Subject: note 41803 modified in function.imap-mime-header-decode by didou
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-75695@lists.php.net to get a copy of this message
<?php function decode_iso88591($string){ if (strpos(strtolower($string), '=?iso-8859-1') === false) { return $string; } $string = explode('?', $string); return strtolower($string[2]) == 'q' ? quoted_printable_decode($string[3]) : base64_decode($string[3]); } ?> --was-- Second version of decode_iso88591() function function decode_iso88591($string){ if ( strpos(strtolower($string), '=?iso-8859-1')===false ) return $string; $string=explode('?', $string); return strtolower($string[2]) == 'q' ?quoted_printable_decode($string[3]):base64_decode($string[3]); } http://php.net/manual/en/function.imap-mime-header-decode.php

« previous php.notes (#75695) next »