note 104696 deleted from function.base64-encode by danbrown

From: Date: Fri, 01 Jul 2011 16:46:15 +0000
Subject: note 104696 deleted from function.base64-encode by danbrown
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-181138@lists.php.net to get a copy of this message
Note Submitter: 1106 -at- dafydd -dot- com ---- @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...)

« previous php.notes (#181138) next »