Say i have an array
$array
Could anyone give me an example of how to use a foreach loop and print two lists after the initial array total
http://php.net/manual/en/function.array-slice.php
To slice the array into half, use floor(count($array)/2) to know your offset.