note 28915 added to function.base64-encode
| From: | mnirwan at microshell dot com | Date: | Tue, 28 Jan 2003 00:58:14 +0000 |
| Subject: | note 28915 added to function.base64-encode | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-42899@lists.php.net to get a copy of this message | ||
You can use chunk_split() to match RFC 2045 semantics. By default, it will insert "\r\n"
every 76 chars.
From the example, $new_string should conform to RFC 2045:
$new_string = chunk_split(base64_encode($data));
Check this page for manual on chunk_split(): http://www.php.net/manual/en/function.chunk-split.php
--
http://www.php.net/manual/en/function.base64-encode.php
http://master.php.net/manage/user-notes.php?action=edit+28915
http://master.php.net/manage/user-notes.php?action=delete+28915
http://master.php.net/manage/user-notes.php?action=reject+28915