note 104488 deleted from function.str-split by danbrown

From: Date: Mon, 20 Jun 2011 14:24:40 +0000
Subject: note 104488 deleted from function.str-split by danbrown
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-180683@lists.php.net to get a copy of this message
Note Submitter: php_net at mcdragonsoftware dot com ---- @anon re: small chuck at begining instead of end. wow... that's a lot of code for this. why not flip split flip it instead? (I use that in audio processing to create a wicked reverse echo) function str_rsplit( $str, $len ) { return strrev( str_split( strrev($str), $len ) ); }

« previous php.notes (#180683) next »