class Collection
A PHP representation of the CQL list
datatype
Implements
Countable
Iterator
Methods
__construct
(string
$type )
Creates a new collection of a given type.
string
type
( )The type of this collection.
array
values
( )Array of values in this collection.
int
add
(mixed
$value )
Adds one or more values to this collection.
bool
remove
(int
$index )
Deletes the value at a given index
mixed
get
(int
$index )
Retrieves the value at a given index.
int
find
(mixed
$value )
Finds index of a value in this collection.
int
count
( )Total number of elements in this collection
mixed
current
( )Current element for iteration
int
key
( )Current key for iteration
void
next
( )Move internal iterator forward
bool
valid
( )Check whether a current value exists
void
rewind
( )Rewind internal iterator