<html>
<body>
$age=array("Peter"=>"35","Ben"=>"37","Joe"=>"43","Harry"=>"50");
print_r(array_chunk($age,2,true));
</body>
<!-- Mirrored from www.w3schools.com/php/phptryit.asp?filename=tryphp_func_array_chunk2 by HTTrack Website Copier/3.x [XR&CO'2014], Mon, 27 Jan 2020 02:50:51 GMT -->
</html>