note 105174 added to function.array-chunk
| From: | anonymous at osu1 dot php dot net | Date: | Mon, 01 Aug 2011 14:06:31 +0000 |
| Subject: | note 105174 added to function.array-chunk | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-182067@lists.php.net to get a copy of this message | ||
Yet another alternative for PHP 4 users
<?php
function array_chunks($string,$length){
if($length<1){$length = strlen($string);}
for($i=0;$i*$length<strlen($string);$i++){
$array[$i] = substr($string,$i*$length,$length);
}
return $array;
}
?>
----
Server IP: 69.147.83.197
Probable Submitter: 95.154.230.191
----
Manual Page -- http://www.php.net/manual/en/function.array-chunk.php
Edit -- https://master.php.net/note/edit/105174
Del: integrated -- https://master.php.net/note/delete/105174/integrated
Del: useless -- https://master.php.net/note/delete/105174/useless
Del: bad code -- https://master.php.net/note/delete/105174/bad+code
Del: spam -- https://master.php.net/note/delete/105174/spam
Del: non-english -- https://master.php.net/note/delete/105174/non-english
Del: in docs -- https://master.php.net/note/delete/105174/in+docs
Del: other reasons-- https://master.php.net/note/delete/105174
Reject -- https://master.php.net/note/reject/105174
Search -- https://master.php.net/manage/user-notes.php