\SUtil

Summary

Methods
Properties
Constants
getRequestValue()
log()
getIP()
validEmail()
getSubStr()
getRandString()
No public properties found
No constants found
No protected methods found
No protected properties found
N/A
No private methods found
No private properties found
N/A

Methods

getRequestValue()

getRequestValue(array  $data, string  $key, boolean  $isnum = false,   $default = null,   $minLength,   $maxLength) 

Get Request Value

Parameters

array $data

($_GET,$_POST)

string $key
boolean $isnum

true|false

$default
$minLength
$maxLength

log()

log(  $logFile,   $data) 

Parameters

$logFile
$data

getIP()

getIP(  $long = false) 

Parameters

$long

validEmail()

validEmail(  $email) 

Parameters

$email

getSubStr()

getSubStr(  $str,   $length,   $postfix = '...',   $encoding = 'UTF-8') 

get substr support chinese return $str

Parameters

$str
$length
$postfix
$encoding

getRandString()

getRandString(  $len) 

get rand string

Parameters

$len