$input
=
array
(
"a"
,
"b"
,
"c"
,
"d"
,
"e")
;
$output
=
array_slice
($input
,
2)
;
/
/
geeft
"c"
,
"d"
,
en
"e
"
terug
$output
=
array_slice
($input
,
2
,
-1)
;
/
/
geeft
"c"
,
"d
"
terug
$output
=
array_slice
($input
,
-2
,
1)
;
/
/
geeft
"d
"
terug
$output
=
array_slice
($input
,
0
,
3)
;
/
/
geeft
"a"
,
"b"
,
en
"c
"
terug
|