write_log() write_log(string|array $values, string $dir) : boolean|integer 写入日志 (废弃) Parameters string|array $values string $dir Returns boolean|integer
log_write() log_write( $value, string $type = 'yoshop-info') 写入日志 (使用tp自带驱动记录到runtime目录中) Parameters $value string $type
curl() curl( $url, array $data = array()) : mixed curl请求指定url (get) Parameters $url array $data Returns mixed
curlPost() curlPost( $url, array $data = array()) : mixed curl请求指定url (post) Parameters $url array $data Returns mixed
array_column() array_column( $array, $columnKey, null $indexKey = null) : array array_column 兼容低版本php (PHP < 5.5.0) Parameters $array $columnKey null $indexKey Returns array
array_merge_multiple() array_merge_multiple( $array1, $array2) : array 多维数组合并 Parameters $array1 $array2 Returns array
array_sort() array_sort( $arr, $keys, boolean $desc = false) : mixed 二维数组排序 Parameters $arr $keys boolean $desc Returns mixed
export_excel() export_excel( $fileName, array $tileArray = array(), array $dataArray = array()) 数据导出到excel(csv文件) Parameters $fileName array $tileArray array $dataArray
getGuidV4() getGuidV4(boolean $trim = true) : string 获取全局唯一标识符 Parameters boolean $trim Returns string
format_time() format_time( $timeStamp) : false|string 时间戳转换日期 Parameters $timeStamp Returns false|string
pad_left() pad_left( $value, integer $padLength = 2) : string 左侧填充0 Parameters $value integer $padLength Returns string
filter_emoji() filter_emoji( $text) : null|string|array<mixed,string> 过滤emoji表情 Parameters $text Returns null|string|array<mixed,string>
checksubmit() checksubmit( $var = 'submit', $allowget = false) 校验微擎submit提交 待完善 Parameters $var $allowget
tp_error() tp_error( $msg = '', \unknown $url = null, \unknown $data = '', \number $wait = 3, array $header = array()) tp自带跳转 Parameters $msg \unknown $url \unknown $data \number $wait array $header Throws \think\exception\HttpResponseException
tp_success() tp_success( $msg = '', $url = null, $data = '', $wait = 3, array $header = array()) Parameters $msg $url $data $wait array $header
pagination() pagination( $total, $pageIndex, $pageSize = 15, $url = '', $context = array('before' => 5, 'after' => 4, 'ajaxcallback' => '', 'callbackfuncname' => '')) Parameters $total $pageIndex $pageSize $url $context