摘要:
<php /** * 安全过滤函数 * * @param $string * @return string */ function safe_replace($string) { $string = str_replace('%20','',$string); $string = str_repla 阅读全文
posted @ 2016-12-28 16:38
鼎峰Bruce
阅读(687)
评论(0)
推荐(0)
摘要:
strripos() 函数 定义和用法strripos() 函数查找字符串在另一个字符串中最后一次出现的位置。如果成功,则返回位置,否则返回 false。语法strrpos(string,find,start)参数描述string必需。规定被搜索的字符串。find必需。规定要查找的字符。start可 阅读全文
posted @ 2016-12-28 16:22
鼎峰Bruce
阅读(241)
评论(0)
推荐(0)
摘要:
第一步:在Smarty_Compiler.class.php的_compile_tag函数中增加: 复制代码 代码如下: //加载数据的开始标签case 'load': $this->_push_tag('load'); return $this->_complie_load_start($tag_ 阅读全文
posted @ 2016-12-28 16:07
鼎峰Bruce
阅读(173)
评论(0)
推荐(0)
摘要:
<?php $connstr="DRIVER={Microsoft Access Driver (*.mdb)}; DBQ=" . realpath("data.mdb"); $connid=odbc_connect($connstr,"","",SQL_CUR_USE_ODBC); $issuet 阅读全文
posted @ 2016-12-28 15:57
鼎峰Bruce
阅读(2231)
评论(0)
推荐(0)
摘要:
数据库中有4个字段分别是id,volume,edition,name. 要求对查询结果按照volume+edition从大到小排序。下面将一下array_multisort函数array_multisort() 可以用来一次对多个数组进行排序,或者根据某一维或多维对多维数组进行排序。 关联(stri 阅读全文
posted @ 2016-12-28 15:48
鼎峰Bruce
阅读(250)
评论(0)
推荐(0)
摘要:
<?/** * xml2array() will convert the given XML text to an array in the XML structure. * Link: http://www.bin-co.comphp/scripts/xml2array/ * Arguments 阅读全文
posted @ 2016-12-28 15:45
鼎峰Bruce
阅读(487)
评论(0)
推荐(0)

浙公网安备 33010602011771号