<?php $a=array("red","green","blue","yellow","brown"); print_r(array_slice($a,1,2)); ?>