index
inc/config
inc/config.bak
inc/wts
inc/class/cache
inc/class/cookie
inc/class/db
inc/class/error
inc/class/fso
inc/class/function
inc/class/js
inc/class/load
inc/class/log
inc/class/pagelist
inc/class/request
inc/class/response
inc/class/route
inc/class/session
inc/class/template
inc/class/valid
inc/class/crypt/a2u
inc/class/crypt/aes
inc/class/crypt/base64
inc/class/crypt/des
inc/class/crypt/escape
inc/class/crypt/hex
inc/class/crypt/md5
inc/class/crypt/num
inc/class/crypt/rsa
inc/class/crypt/sha
inc/class/ext/array <--
inc/class/ext/cart
inc/class/ext/date
inc/class/ext/http
inc/class/ext/jmail
inc/class/ext/jpeg
inc/class/ext/json
inc/class/ext/jsont
inc/class/ext/mail
inc/class/ext/md5
inc/class/ext/pack
inc/class/ext/stringbuilder
inc/class/ext/tqqwry
inc/class/ext/upfile
inc/class/ext/verify
inc/class/ext/webstat
inc/class/ext/wia
inc/class/ext/xml
inc/class/ext/zip
inc/class/route/module
inc/class/route/slash
inc/module/default/control/clear
inc/module/default/control/crypt
inc/module/default/control/error
inc/module/default/control/hello
inc/module/default/control/index
inc/module/default/control/json
inc/module/default/control/pic
inc/module/default/control/upload
inc/module/default/control/start/site
inc/module/default/control/start/route/key
inc/module/default/control/start/route/pic
inc/module/default/control/start/route/reg
inc/module/default/control/tag/hello
inc/module/default/language/cn/hello
inc/module/default/language/en/hello
inc/module/default/model/hello
inc/module/help/control/error
inc/module/help/control/index
inc/module/help/control/install
inc/module/help/control/start/site

类描述

title Class_Ext_Array
author POPASP
date 2017-02-13
description 数组操作类

类方法

Push( ByRef arr,ByVal item ) 向数组尾部添加一个元素
Unshift( ByRef arr,ByVal item ) 向数组头部添加一个元素
Insert( ByRef arr,ByVal pos,ByVal item ) 向数组某个下标处插入元素,其它元素后移
InsertArr( ByRef arr,ByVal pos,ByRef items ) 向数组某个下标处插入元素,其它元素后移
Pop( ByRef arr ) 从尾部删除一个元素,并返回该元素
Shift( ByRef arr ) 从头部删除一个元素,并返回该元素
Remove( ByRef arr , pos ) 从数组中按下标位置删除一个元素
Swap( ByRef arr, ByVal i, ByVal j) 交换数组中两个下标的值
Exists( ByRef arr,ByRef val ) 判断某个值是否存在于数组中,返回True或者False
iExists( ByRef arr,ByRef val )判断某个值是否存在于数组中,并且不区分大小写,返回True或者False
iSearch( ByRef arr,ByRef val ) 在数组中搜索给定的值,且不区分大小写,如果成功则返回相应的键名,否则返回-1
Search(ByRef arr,ByRef val) 在数组中搜索给定的值,如果成功则返回相应的键名,否则返回-1
Slice( ByRef arr, ByVal offset,ByVal length ) 取片段函数
Unique( ByRef arr ) 移除数组中重复的值并将剩余的值返回一个数组(原数组不变)
Merge( ByRef arr1,ByRef arr2 ) 将两个数组合并
Sorts( ByRef arr,ByVal ord ) 按字符串对比排序 asc/desc
Reverse( ByRef arr ) 返回一个单元顺序相反的数组
Shuffle (ByRef arrInput) 将数组打乱

返回