My array :
$arr = array(\"jan\",\"feb\",\"mar\",\"apr\",\"mei\",\"jun\",\"jul\",\"agu\",\"sep\",\"okt\",\"nov\",\"des\");
then i do a foreach<
A little more Dynamic
$arr = array(
"jan",
"feb",
"mar",
"apr",
"mei",
"jun",
"jul",
"agu",
"sep",
"okt",
"nov",
"des"
);
$arr2 = $arr;
foreach ($arr as $k => $currVal) {
unset($arr2[$k]);
foreach ($arr2 as $k => $v) {
$nextVal = $v;
break;
}
echo "next val: " . $nextVal;
echo "current val: " . $currVal;
}