<?php $array = array(array(0,0), array(0,5), array(5,5), array(5,0), array(0,0)); foreach ($array as $point) { $next = next($array); var_dump($point, $next); }
You have javascript disabled. You will not be able to edit any code.