CodeIgniter获取配置信息
在config文件夹下的新建sdk.php $this->config->load(‘sdk’); $config = $this->config->item(‘oss’...
在config文件夹下的新建sdk.php $this->config->load(‘sdk’); $config = $this->config->item(‘oss’...
// 随机生成一组字符串 function build_count_rand($number, $length = 4, $mode = 1) { if ($mode == 1 && $length < strlen(...
<?php parse_str("name=Bill&age=60"); echo $name."<br>"; echo $age; ?> Bill 60 <?php parse_str("name=B...
function formatTime($time) { $t = NOW_TIME – $time; $mon = (int) ($t / (86400 * 30)); if ($mon >= 1) { return &...
好吧,并不难,但花了不少时间 以下是我的解决方法 var country = $.trim($(“.input_prc”).val()); 先给取值去空格,如果引用了jquery可以直接用$.trim,没有就用js的...
/** * 判断输入的字符串是否是一个合法的QQ * * @param string $string * @return boolean */ function isQQ($string) { if (ctype_digit($string...
原字符串1,2,3,4,5,6, 去掉最后一个字符”,”,最终结果为1,2,3,4,5,6 代码如下: $str = “1,2,3,4,5,6,”; $newstr = substr($str...
function arrayToObject($e) { if (gettype($e) != ‘array’) return; foreach ($e as $k => $v) { if (gettype($...
/** * 字符串截取,支持中文和其他编码 * @static * @access public * @param string $str 需要转换的字符串 * @param string $start 开始位置 * @param stri...
bug出现在:模块->新功能->社区村镇管理 修改文件: admin\publicAction.class.php 把原文件的“X”号改为“ * ”号就可以。并且这个问题在多处出现。要仔细