<?php $a=array(0=>"red",1=>"green",2=>"blue"); echo array_shift($a)."<br>"; print_r ($a); ?>