截取文件后缀: $slen = strlen($suffix); substr($this->uri_string, -$slen) === $suffix 原理:截取倒数多少长度字符 判断多维数组变量是否存在: isset($this->config[$index], $this->config[...
分类:
Web程序 时间:
2015-01-24 22:49:10
阅读次数:
253
截取文件后缀:$slen = strlen($suffix);substr($this->uri_string, -$slen) === $suffix原理:截取倒数多少长度字符判断多维数组变量是否存在:isset($this->config[$index], $this->config[$inde...
分类:
Web程序 时间:
2015-01-24 15:48:11
阅读次数:
139
mCheckCode = strtoupper(substr(md5(rand()),0,$this->mCheckCodeNum)); $this->mCheckCode = strtoupper(substr(rand(0,9999999999),0,$this->mCheckCodeNum))...
分类:
其他好文 时间:
2015-01-23 15:55:49
阅读次数:
108
原文链接:http://oracle-base.com/articles/misc/regular-expressions-support-in-oracle.php
Introduction
Example 1 : REGEXP_SUBSTR
Example 2 : REGEXP_SUBSTR
Example 3 : REGEXP_SUBSTR
Example 4 : REGE...
分类:
数据库 时间:
2015-01-22 13:25:46
阅读次数:
329
在win下,当你要include多个路径的话,你要用“;”隔开,但在linux下就使用":"隔开的。。if (substr(php_uname(), 0, 7) == "Windows") ini_set ( "include_path" , '.;..\..\common;..\..\includ...
$password = '';$chars = '123456789abcdefghjkmnpqrstuvwxyz';for($i = 0; $i < 8; $i ++) { $password .= substr ( $chars, mt_rand ( 0, strlen ( $chars ...
分类:
其他好文 时间:
2015-01-20 13:36:11
阅读次数:
108
class.core.php中 $this->var['formhash'] = formhash();define('FORMHASH', $this->var['formhash']);hash值生成方法function formhash() { return substr(md5(substr...
分类:
Web程序 时间:
2015-01-20 00:55:26
阅读次数:
280
string
头文件 #include
名称空间 std
std::to_string()
std::stoll(str,*,0)
string::substr(pos,length = npos) //pos start at 0
std::size_t found = string::find_first_not_of(string("abcdefghijklmnopqrstuvw...
分类:
其他好文 时间:
2015-01-19 17:17:53
阅读次数:
125
//通过地址栏传入参数进行解码function getUrlParam(name) {var reg = new RegExp("(^|&)" + name + "=([^&]*)(&|$)", "i");var r = decodeURI(window.location.search.substr...
分类:
其他好文 时间:
2015-01-15 17:46:13
阅读次数:
175