紧接:"理清JavaScript正则表达式--上篇"。 类String支持四种利用正则表达式的方法。分别是search、replace、match和split方法。下面将一一讲述。 --String.search(regexp)-- search相对于其他三个方法,是应用正则最简单的方法啦,作用就是 ...
分类:
编程语言 时间:
2016-05-28 15:36:01
阅读次数:
168
PHP作为一种Web语言,无论是解析出的HTML代码还是二进制的图片,最终都要通过浏览器显示。应用GD2函数绘制图像首先需要用header()函数发送HTTP头信息给浏览器,告知所要输出的图像的类型,然后应用imagegif()函数、imagejpeg()函数或者imagepng()函数等分别输出GIF,JPG和PNG格式的图片。
header(string,replace,http_res...
分类:
其他好文 时间:
2016-05-27 12:23:38
阅读次数:
182
ORACLE视图添加备注 ORACLE视图添加备注 版权声明:本文为博主原创文章,未经博主允许不得转载。 版权声明:本文为博主原创文章,未经博主允许不得转载。 create or replace view oes_material_series_ref as select t.productgrou ...
分类:
数据库 时间:
2016-05-26 17:14:19
阅读次数:
531
打印sql语句,直接在你执行SQL语句后输出 方法一: $queries = DB::getQueryLog(); $a = end($queries); $tmp = str_replace('?', '"'.'%s'.'"', $a["query"]); echo vsprintf($tmp, ...
分类:
数据库 时间:
2016-05-26 13:09:09
阅读次数:
203
使用php5.5运行ecshop的时候出现如下错误Deprecated: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in \ecshop\includes\cls_template ...
分类:
其他好文 时间:
2016-05-25 22:02:46
阅读次数:
157
需求:对一个包含数字的字符串排序 search后参考了 http://www.cnblogs.com/m-cnblogs/archive/2012/03/30/2425938.html 截屏: (用到了to_number(str,split 1,...) instr() replace() subs ...
分类:
数据库 时间:
2016-05-25 20:20:25
阅读次数:
298
在使用的模板目录下创建文件夹ydy(默认为default)创建模板文件index.htm2.在根目录下创建ydy文件夹创建index.php文件<?php
include(dirname(dirname(__FILE__)).‘/global.php‘);
$Dir=str_replace("/","\\",dirname(__FILE__));
$DirNameList=explode(‘\\‘,$Dir);
$ModuleNa..
分类:
Web程序 时间:
2016-05-25 19:07:18
阅读次数:
539
utl_tcp 实现tcp连接 function : test script: xml output procedure: CREATE OR REPLACE PROCEDURE PrintXML (i_respxml IN CLOB) is line VARCHAR2 (32767); v_clo ...
分类:
数据库 时间:
2016-05-25 18:40:59
阅读次数:
230
mysql 重复数据插入 replace into t(id, update_time) values(1, now()); 或 replace into t(id, update_time) select 1, now(); MySQL replace into 有三种形式: 1. replace ...
分类:
数据库 时间:
2016-05-25 11:05:46
阅读次数:
185
这里提取指定符串"A"在字段中的出现次数SQL为: select len(keyword)-len(replace(keyword, 'A', ' ')) from 表 原理:用replace函数将要查找的字符替换为空字符,将替换之间的字符串长度-替换后字符串长度 原理:用replace函数将要查找 ...
分类:
数据库 时间:
2016-05-25 09:32:03
阅读次数:
174