note 104696 added to function.base64-encode

From: Date: Fri, 01 Jul 2011 04:21:37 +0000
Subject: note 104696 added to function.base64-encode
Groups: php.notes 
Request: Send a blank email to php-notes+get-181127@lists.php.net to get a copy of this message
@Nimja.com Thanks for the preg_replace; I just used it. One small quibble, though. You used single quotes in your replace string. Therefore, the \n will get interpreted literally rather than as a carriage return. Using double quotes will do the interpretation properly. Thus, $string = preg_replace('/(.{64})/', "$1\n", $string); (Why didn't my encoding get split up? Where'd all those backslash-n's come from? Oh... Wait...) ---- Server IP: 69.147.83.197 Probable Submitter: 24.113.162.191 ---- Manual Page -- http://www.php.net/manual/en/function.base64-encode.php Edit -- https://master.php.net/note/edit/104696 Del: integrated -- https://master.php.net/note/delete/104696/integrated Del: useless -- https://master.php.net/note/delete/104696/useless Del: bad code -- https://master.php.net/note/delete/104696/bad+code Del: spam -- https://master.php.net/note/delete/104696/spam Del: non-english -- https://master.php.net/note/delete/104696/non-english Del: in docs -- https://master.php.net/note/delete/104696/in+docs Del: other reasons-- https://master.php.net/note/delete/104696 Reject -- https://master.php.net/note/reject/104696 Search -- https://master.php.net/manage/user-notes.php

« previous php.notes (#181127) next »