note 94729 deleted from function.chunk-split by danbrown
| From: | danbrown@php.net | Date: | Fri, 20 Nov 2009 17:18:30 +0000 |
| Subject: | note 94729 deleted from function.chunk-split by danbrown | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-163134@lists.php.net to get a copy of this message | ||
Note Submitter: Anonymous
----
//I've used this to simulate imperfect randomness, like deck cutting.
function truffle_shuffle($body, $chunklen = 76, $end = "\r\n")
{
$chunk = chunk_split($body,$chunklen,"-=blender=-");
$truffle = explode("-=blender=-",$chunk);
$shuffle = shuffle($truffle);
$hnukc = implode($end,$shuffle);
return $hnukc;
}