note 80814 added to function.imap-header

From: Date: Fri, 01 Feb 2008 14:37:53 +0000
Subject: note 80814 added to function.imap-header
Groups: php.notes 
Request: Send a blank email to php-notes+get-135700@lists.php.net to get a copy of this message
Here is a clean way to decode encoded imap headers that will work in all cases : function fix_text($str) { $subject = ''; $subject_array = imap_mime_header_decode($str); foreach ($subject_array AS $obj) $subject .= rtrim($obj->text, "\t"); return $subject; } ---- Server IP: 217.174.223.124 Probable Submitter: 83.206.57.131 ---- Manual Page -- http://www.php.net/manual/en/function.imap-header.php Edit -- https://master.php.net/note/edit/80814 Del: integrated -- https://master.php.net/note/delete/80814/integrated Del: useless -- https://master.php.net/note/delete/80814/useless Del: bad code -- https://master.php.net/note/delete/80814/bad+code Del: spam -- https://master.php.net/note/delete/80814/spam Del: non-english -- https://master.php.net/note/delete/80814/non-english Del: in docs -- https://master.php.net/note/delete/80814/in+docs Del: other reasons-- https://master.php.net/note/delete/80814 Reject -- https://master.php.net/note/reject/80814 Search -- https://master.php.net/manage/user-notes.php

« previous php.notes (#135700) next »