1. 调用单个数据示例:
$a = DB::result(DB::query("SELECT a FROM ".DB::table('abc')." WHERE id = '1'"));
2. 调用统计数据示例:
$b = DB::result(DB::query("SELECT count(*) FROM ".DB::table('abc')." WHERE id = '1'"));
3、过滤discuz代码的语句:
preg_replace ("/[[a-z][^]]*]|[/[a-z]+]/i",'',preg_replace("/[attach]d+[/attach]/i",'',$message));
4、discuz截取字符数的代码:
<!--{echo cutstr(要截取的内容,40)}-->