<?php
//Beispiel 1
$staedte_array = array('Berlin', 'Hamburg', 'Köln',
'München', 'Frankfurt', 'München', 'Essen',
'Duisburg');
print_r(array_chunk($staedte_array, 3));
print "<br><br>";
//Beispiel 2
print_r(array_chunk($staedte_array, 2, true));
print "<br><br>";
//Beispiel 3
print_r(array_chunk($staedte_array,
4, false));
?> |