My array :
$arr = array("jan","feb","mar","apr","mei","jun","jul","agu","sep","okt","nov","des");
then i do a foreach
foreach($arr as $ar){
echo $ar;
}
that will output jan to des
my question is how do i display the previous values in current key?
For example, when I get to feb, I want to display jan too, when I get to jul, i want to display jun, etc.