iterator.slice ViewHelper <vhs:iterator.slice>

Slice an Iterator by $start and $length.

Arguments

haystack

DataType

mixed

Required

false

Description

The input array/Traversable to reverse

start

DataType

integer

Required

false

Description

Starting offset

length

DataType

integer

Required

false

Description

Number of items to slice

preserveKeys

DataType

boolean

Default

true

Required

false

Description

Whether or not to preserve original keys

as

DataType

string

Required

false

Description

Template variable name to assign; if not specified the ViewHelper returns the variable instead.