function extract_emails_from($string) { //加入对#的判断,这个你懂的^_^ http://blog.ddian.cn preg_match…
function getWeekStartAndEnd ($year,$week=1) { header("Content-type:text/html;charset=…
function compress_html($string) { $string = str_replace("\r\n", '', $string); //…
function copy_dir($src,$dst) { $dir = opendir($src); @mkdir($dst); while(false !== ( $file…
<?php /********************************************************************************…
function num_format($num){ if(!is_numeric($num)){ return false; } $rvalue=''; $num = explo…
一共有3个文件: 1、functions.php 2、water.config.php 3、water.class.php 代码如下: functions…
function show_page($count,$page,$page_size) { $page_count = ceil($count/$page_size); //计算得…
参数详解如下: 第一个参数:缓存二级目录 第二个参数:缓存时间 默认1800 第三个参数:是否需要三级目录 0:不需要 1 需要 默…
/** * 返回两个时间的相距时间,*年*月*日*时*分*秒 * @param int $one_time 时间一 * @param int $two_time 时间二 * @pa…
test(); /** * 测试 */ function test() { echo CnToInt('一'); // 1 echo CnToInt('十'); // 10 ech…
/** * 通用加密 * @param String $string 需要加密的字串 * @param String $skey 加密EKY * @return String */…