<?php
// Preserve parameter set to true:
$a=array("red","green","blue","yellow","brown");
print_r(array_slice($a,1,2,true));

// Preserve parameter set to false (default):
$a=array("red","green","blue","yellow","brown");
print_r(array_slice($a,1,2,false));

// Note the differences in the array keys
?>