代码测试
<?php /** * @link http://www.phpGrace.com * @copyright Copyright (c) 2010-2015 phpWit. * @license http://www.phpGrace.com/license * @package phpGrace * @author haijun liu mail:5...
<?php /** * @link http://www.phpGrace.com * @copyright Copyright (c) 2010-2015 phpWit. * @license http://www.phpGrace.com/license * @package phpGrace * @author haijun liu mail:5...
将session里的json字符串转换为数组//a:3:{s:4:"name";s:6:"huqian";s:3:"sex";s:3:"男";s:3:"age";i:27;}$whereSql = json_decode(getSession('whereSql'));$whereSql['name'];出现错误:Cannot use object of type stdClass as a...
function checkUrl($url){ if(stripos($url,'http://') === FALSE){ $url = 'http://'.$url; } @$rs = get_headers($url); if($rs){ if(stripos($rs[0],'404') !== FALSE){ ...
date() 函数格式化本地日期和时间,并返回已格式化的日期字符串。date(format,timestamp);format 参数为必填,格式为何种格式timestamp 可选参数。规定整数的 Unix 时间戳。默认是当前的本地时间(time())。
protected function json($data, $type = 'ok'){ pgExit(json_encode(array('status' => $type, 'data' => $data))); } //common functions function pgExit($msg = ''){ exit($msg); }
phpGracetoolspage Object([totalRows] => 115 [eachPage] => 20 [maxPage] => 6 [limit] => limit 40,20 [currentPage] => 3 [firstPage] => /wxwzmanage/viewlist/61//page_1/ [prePage] =&...