- print_r: documentation ( source)
- array_shift: documentation ( source)
<?php $stack = array("orange", "banana", "apple", "raspberry"); $fruit = array_shift($stack); print_r($stack); $_room = array(); for($i = 2; $i < 8; $i++) { $_room[] = array_shift($stack); } print_r($_room); unset($_room[2]); print_r($_room); foreach($_room as $value){ print "value=".$value."\n"; }?>