I am getting no response with the following, i am trying to split the array into blocks of 7 values. Although this is not responding whatsoever. I have verified this against the reference: http://www.php.net/manual/en/function.array-chunk.php however cannot get it working. Any advice?
$array = $_POST['myarray'];
$chunked = array_chunk($array, 7);
foreach ( $chunked as $row ) {
foreach ( $row as $value ) {
echo $value;
}
echo "\r\n" ;
}else{
}
print_r($array)?