Documentation

SUtil
in package

Table of Contents

Methods

getIP()  : mixed
getRandString()  : mixed
get rand string
getRequestValue()  : mixed
Get Request Value
getSubStr()  : mixed
get substr support chinese return $str
log()  : mixed
validEmail()  : mixed

Methods

getIP()

public static getIP([mixed $long = false ]) : mixed
Parameters
$long : mixed = false

getRandString()

get rand string

public static getRandString(mixed $len) : mixed
Parameters
$len : mixed

getRequestValue()

Get Request Value

public static getRequestValue(array<string|int, mixed> $data, string $key[, bool $isnum = false ][, mixed $default = null ][, mixed $minLength = 0 ][, mixed $maxLength = 0 ]) : mixed
Parameters
$data : array<string|int, mixed>

($_GET,$_POST)

$key : string
$isnum : bool = false

true|false

$default : mixed = null
$minLength : mixed = 0
$maxLength : mixed = 0

getSubStr()

get substr support chinese return $str

public static getSubStr(mixed $str, mixed $length[, mixed $postfix = '...' ][, mixed $encoding = 'UTF-8' ]) : mixed
Parameters
$str : mixed
$length : mixed
$postfix : mixed = '...'
$encoding : mixed = 'UTF-8'

log()

public static log(mixed $logFile, mixed $data) : mixed
Parameters
$logFile : mixed
$data : mixed

validEmail()

public static validEmail(mixed $email) : mixed
Parameters
$email : mixed

        
On this page

Search results