\Imi\UtilArgs

命令行参数操作类

Summary

Methods
Properties
Constants
init()
exists()
get()
No public properties found
No constants found
No protected methods found
No protected properties found
N/A
No private methods found
$cliArgs
N/A

Properties

$cliArgs

$cliArgs : string

参数存储

Type

string

Methods

init()

init(integer  $argBegin = 1) : void

初始化

Parameters

integer $argBegin

从第几个参数算

exists()

exists(string  $name) : boolean

指定数据是否存在

Parameters

string $name

Returns

boolean

get()

get(string  $name = '', mixed  $default = null) : mixed

获取值

Parameters

string $name
mixed $default

Returns

mixed