note 28915 deleted from function.base64-encode by betz
| From: | betz@php.net | Date: | Fri, 09 Apr 2004 08:45:15 +0000 |
| Subject: | note 28915 deleted from function.base64-encode by betz | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-67868@lists.php.net to get a copy of this message | ||
Note Submitter: mnirwan@microshell.com
----
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