\Imi\UtilArrayList

限定成员类型的数组列表

Summary

Methods
Properties
Constants
__construct()
offsetExists()
offsetGet()
offsetSet()
offsetUnset()
current()
key()
next()
rewind()
valid()
toArray()
jsonSerialize()
remove()
clear()
append()
count()
No public properties found
No constants found
No protected methods found
No protected properties found
N/A
No private methods found
$itemType
$list
N/A

Properties

$itemType

$itemType : string

限定的数组列表成员类型

Type

string

$list

$list : array

数组列表

Type

array

Methods

__construct()

__construct(  $itemType,   $list = array()) 

Parameters

$itemType
$list

offsetExists()

offsetExists(  $offset) 

Parameters

$offset

offsetGet()

offsetGet(  $offset) 

Parameters

$offset

offsetSet()

offsetSet(  $offset,   $value) 

Parameters

$offset
$value

offsetUnset()

offsetUnset(  $offset) 

Parameters

$offset

current()

current() 

key()

key() 

next()

next() 

rewind()

rewind() 

valid()

valid() 

toArray()

toArray() : array

将当前对象作为数组返回

Returns

array

jsonSerialize()

jsonSerialize() : array

json 序列化

Returns

array

remove()

remove(mixed  ...$value) : void

从数组列表中移除

Parameters

mixed $value variadic

clear()

clear() : void

清空

append()

append(mixed  ...$value) : void

加入数组列表

Parameters

mixed $value variadic

count()

count() : integer

数组列表长度

Returns

integer