\Utils

Summary

Methods
Properties
Constants
encodeUrl()
hex_to_base64()
replaceNS2()
get_mimetype()
chk_chinese()
is_gb2312()
check_char()
iso8601()
getFileSize()
$mime_types
No constants found
No protected methods found
No protected properties found
N/A
No private methods found
No private properties found
N/A

Properties

$mime_types

$mime_types : 

Type

Methods

encodeUrl()

encodeUrl(  $url,   $path = TRUE) 

Parameters

$url
$path

hex_to_base64()

hex_to_base64(  $str) 

Parameters

$str

replaceNS2()

replaceNS2(  $str) 

Parameters

$str

get_mimetype()

get_mimetype(  $ext) 

Parameters

$ext

chk_chinese()

chk_chinese(  $str) : boolean

检测是否含有中文

Parameters

$str

Returns

boolean

is_gb2312()

is_gb2312(string  $str) : boolean

检测是否GB2312编码

Parameters

string $str

Returns

boolean —

false UTF-8编码 TRUE GB2312编码

check_char()

check_char(string  $str, boolean  $gbk = true) : boolean

检测是否GBK编码

Parameters

string $str
boolean $gbk

Returns

boolean

iso8601()

iso8601(  $time = false) 

Parameters

$time

getFileSize()

getFileSize(  $path) 

Parameters

$path