class Php extends PhpHelper

Class Php - alias of the class PhpHelper

Methods

static mixed
call(callable|mixed $cb, array ...$args)

No description

from PhpHelper
static mixed
callByArray(callable $cb, array $args)

No description

from PhpHelper
static array
runtime(int $startTime, int|float $startMem, array $info = [], bool $realUsage = false)

获取资源消耗

from PhpHelper
static int
getMaxUploadSize(int $max_size = 0)

根据服务器设置得到文件上传大小的最大值

from PhpHelper
static array
getUserConstants()

No description

from PhpHelper
static string
dumpVars(array ...$args)

dump vars

from PhpHelper
static string
printVars(array ...$args)

print vars

from PhpHelper
static mixed
exportVar($var)

No description

from PhpHelper

Details

in PhpHelper at line 21
static mixed call(callable|mixed $cb, array ...$args)

Parameters

callable|mixed $cb
array ...$args

Return Value

mixed

in PhpHelper at line 49
static mixed callByArray(callable $cb, array $args)

Parameters

callable $cb
array $args

Return Value

mixed

in PhpHelper at line 62
static array runtime(int $startTime, int|float $startMem, array $info = [], bool $realUsage = false)

获取资源消耗

Parameters

int $startTime
int|float $startMem
array $info
bool $realUsage

Return Value

array

in PhpHelper at line 89
static int getMaxUploadSize(int $max_size = 0)

根据服务器设置得到文件上传大小的最大值

Parameters

int $max_size optional max file size

Return Value

int max file size in bytes

in PhpHelper at line 106
static array getUserConstants()

Return Value

array

in PhpHelper at line 118
static string dumpVars(array ...$args)

dump vars

Parameters

array ...$args

Return Value

string

in PhpHelper at line 132
static string printVars(array ...$args)

print vars

Parameters

array ...$args

Return Value

string

in PhpHelper at line 147
static mixed exportVar($var)

Parameters

$var

Return Value

mixed