$languages = array( 'French', 'German', 'Russian', 'Chinese');
printf("Original array:\n%s
\n", var_export($languages, TRUE));
$slice1 = array_slice($languages, 2, count($languages) - 2);
printf("Slice 1:\n%s
\n", var_export($slice1, TRUE));
$slice2 = array_slice($languages, 2, count($languages) - 2, TRUE);
printf("Slice 2:\n%s
\n", var_export($slice2, TRUE));
?>