The example code like here.
<?php
$new_room_result = array();
$rooms = array('single room' , 'delux room' , 'president room' , 'seavie room');
foreach($rooms as $room){
$new_room_result[] = $room;
// the next step - i want to get the index of after last inserment's index.
}
?>
Does anyone have any ideas?