2011年5月17日

【分享到】代码

摘要: 分享到微博代码 阅读全文

posted @ 2011-05-17 17:55 dawnruby 阅读(348) 评论(1) 推荐(0)

dede

摘要: {dede:sql sql="select * from d_emotion.dede_archives where flag='c,p' and ismake=1 order by pubdate desc limit 0,2"}<li><a href='[field:id runphp='yes'] $id=@me;@me='';$url=GetOneArchive2($id,"d_emotion.dede");@me=$url['arcurl'];[/fiel 阅读全文

posted @ 2011-05-17 16:48 dawnruby 阅读(294) 评论(0) 推荐(0)

PHP preg_match正则表达式的使用

摘要: PHP preg_match正则表达式的使用2010-09-03 00:32第一,让我们看看两个特别的字符:‘^’和‘$’他们是分别用来匹配字符串的开始和结束,以下分别举例说明:"^The": 匹配以 "The"开头的字符串;"of despair$": 匹配以 "of despair" 结尾的字符串;"^abc$": 匹配以abc开头和以abc结尾的字符串,实际上是只有abc与之匹配;"notice": 匹配包含notice的字符串;你可以看见如果你没有用我们提到的两个字符 阅读全文

posted @ 2011-05-17 13:20 dawnruby 阅读(25327) 评论(0) 推荐(2)

导航