<?php $items = array(1, 2, 3, 4, 5); foreach ( $items as &$item ) { echo $item."\n"; if ( $item == 2 ) { $item = 9; prev($items); } }
You have javascript disabled. You will not be able to edit any code.