1 2 3 4 5 ··· 7 下一页
摘要: http://www.phpweblog.net/fuyongjie/archive/2009/03/12/6378.html 1 前言 PHP被大量的应用于Web的后台CGI开发,通常是在用户数据数据之后得出某种结果,但是如果用户输入的数据不正确,就会出现问题,比如说某人的生日是"2月30日"!那应该怎么样来检验暑假是否正确呢? 在PHP中加入了正则表达式的支持,让我们可以十分方便的进行数据匹... 阅读全文
posted @ 2009-04-01 00:13 宇风 阅读(251) 评论(0) 推荐(0) 编辑
摘要: 转自http://www.phpweblog.net/fuyongjie/archive/2009/03/13/6384.html " ; } } $a .= ' "] ' ; print_r (json_decode( $a )); ?> Array ( [0] => 一丁丂七丄丅丆万丈三上下丌不与丏丐丑丒专且丕世丗丘丙业丛东丝丞丟丠 両丢丣两严並丧丨丩个丫丬中丮丯丰丱串丳... 阅读全文
posted @ 2009-04-01 00:12 宇风 阅读(4513) 评论(0) 推荐(0) 编辑
摘要: 转自http://www.phpweblog.net/fuyongjie/archive/2009/03/25/6399.html attachEvent方法,为某一事件附加其它的处理事件。(不支持Mozilla系列) addEventListener方法 用于 Mozilla系列 举例: document.getElementById("btn").onclick = method1; ... 阅读全文
posted @ 2009-04-01 00:10 宇风 阅读(468) 评论(0) 推荐(0) 编辑
摘要: 转自http://www.phpweblog.net/fuyongjie/archive/2009/03/31/6405.html array( 'method'=>'POST', 'header'=>'Content-type: application/x-www-form-urlencoded'."\r\n". ... 阅读全文
posted @ 2009-04-01 00:08 宇风 阅读(321) 评论(0) 推荐(0) 编辑
摘要: 识别utf-8编码字符的正则表达式应为 "/[\xf0-\xf7][\x80-\xbf]{3}|[\xe0-\xef][\x80-\xbf]{2}|[\xc2-\xdf][\x80-\xbf]|[\x01-\x7f]/。据传是因为utf8的汉字编码有1-4个字节组成bestmost 2009-02-27 14:47 发表评论文章来源:http://www.phpweblog.net/fuyon... 阅读全文
posted @ 2009-03-06 01:12 宇风 阅读(127) 评论(0) 推荐(0) 编辑
摘要: Code highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/-->用法有二:void exit ([ string $status ] )void exit ( int $status )注意:Note: PHP >= 4.2.0 does NOT print the... 阅读全文
posted @ 2009-03-06 01:12 宇风 阅读(159) 评论(0) 推荐(0) 编辑
摘要: Code highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/-->下面列出了当前在 PCRE 中可能使用的修正符。括号中是这些修正符的内部 PCRE 名。修正符中的空格和换行被忽略,其它字符会导致错误。 i (PCRE_CASELESS) 如果设定此... 阅读全文
posted @ 2009-03-06 01:12 宇风 阅读(169) 评论(0) 推荐(0) 编辑
摘要: Code highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/-->上边的代码的$a和$b都在$GLOBALS里,与$GLOBALS['a']和$GLOBALS['B']是等价的,但$c 不是,他是函数的私有变量,不在$GLOBALS里,如下可知: Code highli... 阅读全文
posted @ 2009-03-06 01:12 宇风 阅读(146) 评论(0) 推荐(0) 编辑
摘要: 以下以 IE 代替 Internet Explorer,以 MF 代替 Mozzila Firefox 1. document.form.item 问题 (1)现有问题: 现有代码中存在许多 document.formName.item("itemName") 这样的语句,不能在 MF 下运行 (2)解决方法: 改用 document.formName.e... 阅读全文
posted @ 2009-03-06 01:12 宇风 阅读(234) 评论(0) 推荐(0) 编辑
摘要: IE和Firefox下event乱谈 如果在使用javascript的时候涉及到event处理,就需要知道event在不同的浏览器中的差异,因为javascript的事件模型有三 种,它们分别是NN4、IE4+和W3C/Safari;这也造成了在不同的浏... 阅读全文
posted @ 2009-03-06 01:12 宇风 阅读(409) 评论(0) 推荐(0) 编辑
1 2 3 4 5 ··· 7 下一页