<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Wordpress外贸企业主题, Wp企业主题, wordpress企业主题, wordpress主题定制,  PHP代码, ASP代码, 精选JS代码, WORDPRESS, 网站SEO,Flash焦点广告,JS焦点广告,CSS技巧 &#124; 九创主题 &#187; PHP 函数</title>
	<atom:link href="http://www.3code.cn/tag/php-functions-tag/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.3code.cn</link>
	<description>Wordpress外贸企业主题, Wp企业主题, wordpress企业主题, wordpress主题定制,  PHP代码,ASP代码,精选JS代码,WORDPRESS,网站SEO,Flash焦点广告,JS焦点广告,CSS技巧</description>
	<lastBuildDate>Sat, 11 Feb 2012 12:01:08 +0000</lastBuildDate>
	<language>zh-cn</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.1.1</generator>
		<item>
		<title>PHP生成PDF实战</title>
		<link>http://www.3code.cn/php%e7%94%9f%e6%88%90pdf%e5%ae%9e%e6%88%98/</link>
		<comments>http://www.3code.cn/php%e7%94%9f%e6%88%90pdf%e5%ae%9e%e6%88%98/#comments</comments>
		<pubDate>Mon, 21 Feb 2011 03:37:21 +0000</pubDate>
		<dc:creator>寒林</dc:creator>
				<category><![CDATA[PHP]]></category>
		<category><![CDATA[PHP 函数]]></category>
		<category><![CDATA[PHP文件]]></category>

		<guid isPermaLink="false">http://www.3code.cn/?p=2512</guid>
		<description><![CDATA[PHP生成PDF实战]]></description>
			<content:encoded><![CDATA[<p>PHP生成PDF实战</p>
<p>附有实例。</p>
<p>下载地址：<a href="http://www.3code.cn/download/php2pdf.rar">http://www.3code.cn/download/php2pdf.rar</a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.3code.cn/php%e7%94%9f%e6%88%90pdf%e5%ae%9e%e6%88%98/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>RewriteRule-htaccess详细语法使用教程</title>
		<link>http://www.3code.cn/rewriterule-htaccess%e8%af%a6%e7%bb%86%e8%af%ad%e6%b3%95%e4%bd%bf%e7%94%a8%e6%95%99%e7%a8%8b/</link>
		<comments>http://www.3code.cn/rewriterule-htaccess%e8%af%a6%e7%bb%86%e8%af%ad%e6%b3%95%e4%bd%bf%e7%94%a8%e6%95%99%e7%a8%8b/#comments</comments>
		<pubDate>Tue, 18 Jan 2011 08:10:04 +0000</pubDate>
		<dc:creator>寒林</dc:creator>
				<category><![CDATA[PHP]]></category>
		<category><![CDATA[PHP 函数]]></category>

		<guid isPermaLink="false">http://www.3code.cn/?p=2435</guid>
		<description><![CDATA[RewriteRule-htaccess详细语法使用教程.有一个经典的教程： 正则表达式30分钟入门教程，大家可以搜索一下。
这个教程的确很简单，看完基本上写一些简单的正则就没有问题了。正则是一个需要长期使用的工具，隔段时间不用会忘记，所以我每次都看一遍这个教程。其实学过之后重要的就是一点内容。

]]></description>
			<content:encoded><![CDATA[<p><strong>一、正则表达式教程</strong></p>
<p>有一个经典的教程： 正则表达式30分钟入门教程，大家可以搜索一下。<br />
这个教程的确很简单，看完基本上写一些简单的正则就没有问题了。正则是一个需要长期使用的工具，隔段时间不用会忘记，所以我每次都看一遍这个教程。其实学过之后重要的就是一点内容。</p>
<p><strong>简单罗列如下：</strong></p>
<p>.换行符以外的所有字符<br />
\w 匹配字母或数字或下划线或汉字<br />
\s 匹配任意的空白符<br />
\d 匹配数字<br />
\b 匹配单词的开始或结束<br />
^ 匹配字符串的开始<br />
$ 匹配字符串的结束<br />
* 重复零次或更多次<br />
+ 重复一次或更多次<br />
? 重复零次或一次<br />
{n} 重复n次<br />
{n,}重复n次或更多次<br />
{n,m} 重复n到m次</p>
<p><strong>应用替换时，前面第一个（）中匹配的内容后面就用$1引用，第二个（）中匹配的就用$2应用……</strong></p>
<p><strong>分析一下 discuz搜索引擎优化 htaccess 里面的重写。</strong></p>
<p>RewriteRule ^forum-([0-9]+)-([0-9]+)\.html$ forumdisplay.php?fid=$1&amp;page=$2</p>
<p>首先加入用户通过 linuxidc.com/forum-2-3.html 访问discuz论坛，那么先通过.htaccess过滤，看看是否需要.htaccess引导一下用户，如果满足列出的一系列RewriteCond的 条件那么就进行重写，</p>
<p>discuz的没有列出RewriteCond 所以应该全部都进行重写。所以开始进行转写，forum-2-3.html 这个正好符合 列出的^forum-([0-9]+)-([0-9]+)\.html$ 正则表达式。并且 $1 为 2 ，$2为3 ，所以代</p>
<p>入后面，即 forumdisplay.php?fid=2&amp;page=3 加上前面的RewriteBase 指定的文件目录，那么就带他到制定目录的forumdisplay.php?fid=2&amp;page=3 。</p>
<p><strong>二、常见的.htaccess应用举例（部分例子引自四个例子实战讲解.htaccess文件rewrite规则）</strong></p>
<p>4.1 防止盗链，如果来得要访问jpe jpg bmp png结尾的url 用户不是来自我们的网站，那么让他看一张我们网站的展示图片。<br />
RewriteEngine OnRewriteCond %{HTTP_REFERER} !^http://(.+.)?mysite.com/ [NC]RewriteCond %{HTTP_REFERER} !^$RewriteRule .*.(jpe?g|gif|bmp|png)$ /images/nohotlink.jpg [L]</p>
<p>4.2 网站升级的时候，只有特定IP才能访问，其他的用户将看到一个升级页面<br />
RewriteEngine onRewriteCond %{REQUEST_URI} !/upgrade.html$RewriteCond %{REMOTE_HOST} !^24\.121\.202\.30</p>
<p>RewriteRule $ <a href="http://www.linuxidc.com/upgrade.html">http://www.linuxidc.com/upgrade.html</a> [R=302,L]</p>
<p>4.3把老的域名转向新域名<br />
# redirect from old domain to new domainRewriteEngine OnRewriteRule ^(.*)$http://www.yourdomain.com/$1[R=301,L]</p>
<p><strong>三、常用示例</strong></p>
<p><span style="color: #800000;">RewriteEngine On<br />
RewriteRule index.html index.php</span></p>
<p>比如：<a href="http://www.3code.cn/index.html">http://www.3code.cn/index.html</a>  -&gt; <a href="http://www.3code.cn/index.php">http://www.3code.cn/index.php</a></p>
<p><span style="color: #800000;">RewriteRule ^test([0-9]*).html$ test.php?id=$1</span></p>
<p>比如：<a href="http://www.3code.cn/test8.html">http://www.3code.cn/test8.html</a>  -&gt; <a href="http://www.3code.cn/test.php?id=8">http://www.3code.cn/test.php?id=8</a></p>
<p><span style="color: #800000;">RewriteRule ^cat-([0-9]+)-([0-9]+)\.html$ cat.php?id1=$1&amp;id2=$2</span></p>
<p>比如：<a href="http://www.3code.cn/cat-1-3.html">http://www.3code.cn/cat-1-3.html</a> -&gt; <a href="http://www.3code.cn/cat.php?id1=1&amp;id2=3">http://www.3code.cn/cat.php?id1=1&amp;id2=3</a></p>
<p><span style="color: #800000;">RewriteRule ^cat-([a-zA-Z0-9\-]*)-([0-9]+)-([0-9]+)\.html$ cat.php?id0=$1&amp;id1=$2&amp;id2=$3</span></p>
<p>比如：<a href="http://www.3code.cn/cat-zbc2ac-3-5.html">http://www.3code.cn/cat-zbc2ac-3-5.html</a> -&gt; <a href="http://www.3code.cn/cat.php?id0=zbc2ac&amp;id1=3&amp;id2=5">http://www.3code.cn/cat.php?id0=zbc2ac&amp;id1=3&amp;id2=5</a></p>
<p><span style="color: #800000;">RewriteRule ^cat1-([0-9]+)-([0-9]+)-([0-9]+)\.html$ cat1.php?id1=$1&amp;id2=$2&amp;id3=$3</span></p>
<p>比如：<a href="http://www.3code.cn/cat1-4-3-8.html">http://www.3code.cn/cat1-4-3-8.html</a> -&gt; <a href="http://www.3code.cn/cat1.php?id1=4&amp;id2=3&amp;id3=8">http://www.3code.cn/cat1.php?id1=4&amp;id2=3&amp;id3=8</a></p>
<p><span style="color: #800000;">RewriteRule ^cat([0-9]*)/$ cat.php?id1=$1</span></p>
<p>比如：<a href="http://www.3code.cn/cat5/">http://www.3code.cn/cat5/</a> -&gt; <a href="http://www.3code.cn/cat.php?id1=5">http://www.3code.cn/cat.php?id1=5</a></p>
<p><span style="color: #800000;">RewriteRule ^catm([0-9]*)/([0-9]*)/$ catm.php?id1=$1&amp;id2=$2</span></p>
<p>比如：<a href="http://www.3code.cn/catm6/3/">http://www.3code.cn/catm6/3/</a> -&gt; <a href="http://www.3code.cn/catm.php?id1=1&amp;id2=3">http://www.3code.cn/catm.php?id1=6&amp;id2=3</a></p>
<p>希望对大家有所帮助！</p>
]]></content:encoded>
			<wfw:commentRss>http://www.3code.cn/rewriterule-htaccess%e8%af%a6%e7%bb%86%e8%af%ad%e6%b3%95%e4%bd%bf%e7%94%a8%e6%95%99%e7%a8%8b/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>去除特殊字符生成URL的函数</title>
		<link>http://www.3code.cn/%e5%8e%bb%e9%99%a4%e7%89%b9%e6%ae%8a%e5%ad%97%e7%ac%a6%e7%94%9f%e6%88%90url%e7%9a%84%e5%87%bd%e6%95%b0/</link>
		<comments>http://www.3code.cn/%e5%8e%bb%e9%99%a4%e7%89%b9%e6%ae%8a%e5%ad%97%e7%ac%a6%e7%94%9f%e6%88%90url%e7%9a%84%e5%87%bd%e6%95%b0/#comments</comments>
		<pubDate>Tue, 09 Nov 2010 08:24:34 +0000</pubDate>
		<dc:creator>寒林</dc:creator>
				<category><![CDATA[PHP]]></category>
		<category><![CDATA[PHP 函数]]></category>
		<category><![CDATA[PHP生成HTML]]></category>

		<guid isPermaLink="false">http://www.3code.cn/?p=2240</guid>
		<description><![CDATA[去除特殊字符生成URL的函数]]></description>
			<content:encoded><![CDATA[<p>&lt;?<br />
//去除特殊字符的函数，目的是生成URL<br />
echo "输入: ".$_REQUEST["myfilename"]."&lt;br&gt;&lt;br&gt;";<br />
$myfilename=strtolower(str_replace(" ","-",trim($_REQUEST["myfilename"])));<br />
$myarp=array('.','+',',','，','。','%','&amp;','*','/','\\','|','=','(',')','^','$','#','@','!','~','`','/',';',':','"','[',']','{','}','&gt;','&lt;');<br />
for($i=0;$i&lt;=count($myarp);$i++)<br />
{$myfilename=str_replace($myarp[$i],"",$myfilename);<br />
}</p>
<p>echo "输出： ". $myfilename."&lt;br&gt;&lt;br&gt;";<br />
?&gt;</p>
]]></content:encoded>
			<wfw:commentRss>http://www.3code.cn/%e5%8e%bb%e9%99%a4%e7%89%b9%e6%ae%8a%e5%ad%97%e7%ac%a6%e7%94%9f%e6%88%90url%e7%9a%84%e5%87%bd%e6%95%b0/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>可用的PHP汉字转拼音代码</title>
		<link>http://www.3code.cn/php-pinyin/</link>
		<comments>http://www.3code.cn/php-pinyin/#comments</comments>
		<pubDate>Wed, 01 Sep 2010 06:33:55 +0000</pubDate>
		<dc:creator>寒林</dc:creator>
				<category><![CDATA[PHP]]></category>
		<category><![CDATA[PHP 函数]]></category>

		<guid isPermaLink="false">http://www.3code.cn/?p=2068</guid>
		<description><![CDATA[经过测试这是一段可以用的将汉字转换为拼音的代码。
支持UTF-8编码的汉字]]></description>
			<content:encoded><![CDATA[<p>&lt;?<br />
//经过测试这是一段可以用的将汉字转换为拼音的代码。<br />
//支持UTF-8编码的汉字<br />
$d=array(<br />
array("a",-20319),<br />
array("ai",-20317),<br />
array("an",-20304),<br />
array("ang",-20295),<br />
array("ao",-20292),<br />
array("ba",-20283),<br />
array("bai",-20265),<br />
array("ban",-20257),<br />
array("bang",-20242),<br />
array("bao",-20230),<br />
array("bei",-20051),<br />
array("ben",-20036),<br />
array("beng",-20032),<br />
array("bi",-20026),<br />
array("bian",-20002),<br />
array("biao",-19990),<br />
array("bie",-19986),<br />
array("bin",-19982),<br />
array("bing",-19976),<br />
array("bo",-19805),<br />
array("bu",-19784),<br />
array("ca",-19775),<br />
array("cai",-19774),<br />
array("can",-19763),<br />
array("cang",-19756),<br />
array("cao",-19751),<br />
array("ce",-19746),<br />
array("ceng",-19741),<br />
array("cha",-19739),<br />
array("chai",-19728),<br />
array("chan",-19725),<br />
array("chang",-19715),<br />
array("chao",-19540),<br />
array("che",-19531),<br />
array("chen",-19525),<br />
array("cheng",-19515),<br />
array("chi",-19500),<br />
array("chong",-19484),<br />
array("chou",-19479),<br />
array("chu",-19467),<br />
array("chuai",-19289),<br />
array("chuan",-19288),<br />
array("chuang",-19281),<br />
array("chui",-19275),<br />
array("chun",-19270),<br />
array("chuo",-19263),<br />
array("ci",-19261),<br />
array("cong",-19249),<br />
array("cou",-19243),<br />
array("cu",-19242),<br />
array("cuan",-19238),<br />
array("cui",-19235),<br />
array("cun",-19227),<br />
array("cuo",-19224),<br />
array("da",-19218),<br />
array("dai",-19212),<br />
array("dan",-19038),<br />
array("dang",-19023),<br />
array("dao",-19018),<br />
array("de",-19006),<br />
array("deng",-19003),<br />
array("di",-18996),<br />
array("dian",-18977),<br />
array("diao",-18961),<br />
array("die",-18952),<br />
array("ding",-18783),<br />
array("diu",-18774),<br />
array("dong",-18773),<br />
array("dou",-18763),<br />
array("du",-18756),<br />
array("duan",-18741),<br />
array("dui",-18735),<br />
array("dun",-18731),<br />
array("duo",-18722),<br />
array("e",-18710),<br />
array("en",-18697),<br />
array("er",-18696),<br />
array("fa",-18526),<br />
array("fan",-18518),<br />
array("fang",-18501),<br />
array("fei",-18490),<br />
array("fen",-18478),<br />
array("feng",-18463),<br />
array("fo",-18448),<br />
array("fou",-18447),<br />
array("fu",-18446),<br />
array("ga",-18239),<br />
array("gai",-18237),<br />
array("gan",-18231),<br />
array("gang",-18220),<br />
array("gao",-18211),<br />
array("ge",-18201),<br />
array("gei",-18184),<br />
array("gen",-18183),<br />
array("geng",-18181),<br />
array("gong",-18012),<br />
array("gou",-17997),<br />
array("gu",-17988),<br />
array("gua",-17970),<br />
array("guai",-17964),<br />
array("guan",-17961),<br />
array("guang",-17950),<br />
array("gui",-17947),<br />
array("gun",-17931),<br />
array("guo",-17928),<br />
array("ha",-17922),<br />
array("hai",-17759),<br />
array("han",-17752),<br />
array("hang",-17733),<br />
array("hao",-17730),<br />
array("he",-17721),<br />
array("hei",-17703),<br />
array("hen",-17701),<br />
array("heng",-17697),<br />
array("hong",-17692),<br />
array("hou",-17683),<br />
array("hu",-17676),<br />
array("hua",-17496),<br />
array("huai",-17487),<br />
array("huan",-17482),<br />
array("huang",-17468),<br />
array("hui",-17454),<br />
array("hun",-17433),<br />
array("huo",-17427),<br />
array("ji",-17417),<br />
array("jia",-17202),<br />
array("jian",-17185),<br />
array("jiang",-16983),<br />
array("jiao",-16970),<br />
array("jie",-16942),<br />
array("jin",-16915),<br />
array("jing",-16733),<br />
array("jiong",-16708),<br />
array("jiu",-16706),<br />
array("ju",-16689),<br />
array("juan",-16664),<br />
array("jue",-16657),<br />
array("jun",-16647),<br />
array("ka",-16474),<br />
array("kai",-16470),<br />
array("kan",-16465),<br />
array("kang",-16459),<br />
array("kao",-16452),<br />
array("ke",-16448),<br />
array("ken",-16433),<br />
array("keng",-16429),<br />
array("kong",-16427),<br />
array("kou",-16423),<br />
array("ku",-16419),<br />
array("kua",-16412),<br />
array("kuai",-16407),<br />
array("kuan",-16403),<br />
array("kuang",-16401),<br />
array("kui",-16393),<br />
array("kun",-16220),<br />
array("kuo",-16216),<br />
array("la",-16212),<br />
array("lai",-16205),<br />
array("lan",-16202),<br />
array("lang",-16187),<br />
array("lao",-16180),<br />
array("le",-16171),<br />
array("lei",-16169),<br />
array("leng",-16158),<br />
array("li",-16155),<br />
array("lia",-15959),<br />
array("lian",-15958),<br />
array("liang",-15944),<br />
array("liao",-15933),<br />
array("lie",-15920),<br />
array("lin",-15915),<br />
array("ling",-15903),<br />
array("liu",-15889),<br />
array("long",-15878),<br />
array("lou",-15707),<br />
array("lu",-15701),<br />
array("lv",-15681),<br />
array("luan",-15667),<br />
array("lue",-15661),<br />
array("lun",-15659),<br />
array("luo",-15652),<br />
array("ma",-15640),<br />
array("mai",-15631),<br />
array("man",-15625),<br />
array("mang",-15454),<br />
array("mao",-15448),<br />
array("me",-15436),<br />
array("mei",-15435),<br />
array("men",-15419),<br />
array("meng",-15416),<br />
array("mi",-15408),<br />
array("mian",-15394),<br />
array("miao",-15385),<br />
array("mie",-15377),<br />
array("min",-15375),<br />
array("ming",-15369),<br />
array("miu",-15363),<br />
array("mo",-15362),<br />
array("mou",-15183),<br />
array("mu",-15180),<br />
array("na",-15165),<br />
array("nai",-15158),<br />
array("nan",-15153),<br />
array("nang",-15150),<br />
array("nao",-15149),<br />
array("ne",-15144),<br />
array("nei",-15143),<br />
array("nen",-15141),<br />
array("neng",-15140),<br />
array("ni",-15139),<br />
array("nian",-15128),<br />
array("niang",-15121),<br />
array("niao",-15119),<br />
array("nie",-15117),<br />
array("nin",-15110),<br />
array("ning",-15109),<br />
array("niu",-14941),<br />
array("nong",-14937),<br />
array("nu",-14933),<br />
array("nv",-14930),<br />
array("nuan",-14929),<br />
array("nue",-14928),<br />
array("nuo",-14926),<br />
array("o",-14922),<br />
array("ou",-14921),<br />
array("pa",-14914),<br />
array("pai",-14908),<br />
array("pan",-14902),<br />
array("pang",-14894),<br />
array("pao",-14889),<br />
array("pei",-14882),<br />
array("pen",-14873),<br />
array("peng",-14871),<br />
array("pi",-14857),<br />
array("pian",-14678),<br />
array("piao",-14674),<br />
array("pie",-14670),<br />
array("pin",-14668),<br />
array("ping",-14663),<br />
array("po",-14654),<br />
array("pu",-14645),<br />
array("qi",-14630),<br />
array("qia",-14594),<br />
array("qian",-14429),<br />
array("qiang",-14407),<br />
array("qiao",-14399),<br />
array("qie",-14384),<br />
array("qin",-14379),<br />
array("qing",-14368),<br />
array("qiong",-14355),<br />
array("qiu",-14353),<br />
array("qu",-14345),<br />
array("quan",-14170),<br />
array("que",-14159),<br />
array("qun",-14151),<br />
array("ran",-14149),<br />
array("rang",-14145),<br />
array("rao",-14140),<br />
array("re",-14137),<br />
array("ren",-14135),<br />
array("reng",-14125),<br />
array("ri",-14123),<br />
array("rong",-14122),<br />
array("rou",-14112),<br />
array("ru",-14109),<br />
array("ruan",-14099),<br />
array("rui",-14097),<br />
array("run",-14094),<br />
array("ruo",-14092),<br />
array("sa",-14090),<br />
array("sai",-14087),<br />
array("san",-14083),<br />
array("sang",-13917),<br />
array("sao",-13914),<br />
array("se",-13910),<br />
array("sen",-13907),<br />
array("seng",-13906),<br />
array("sha",-13905),<br />
array("shai",-13896),<br />
array("shan",-13894),<br />
array("shang",-13878),<br />
array("shao",-13870),<br />
array("she",-13859),<br />
array("shen",-13847),<br />
array("sheng",-13831),<br />
array("shi",-13658),<br />
array("shou",-13611),<br />
array("shu",-13601),<br />
array("shua",-13406),<br />
array("shuai",-13404),<br />
array("shuan",-13400),<br />
array("shuang",-13398),<br />
array("shui",-13395),<br />
array("shun",-13391),<br />
array("shuo",-13387),<br />
array("si",-13383),<br />
array("song",-13367),<br />
array("sou",-13359),<br />
array("su",-13356),<br />
array("suan",-13343),<br />
array("sui",-13340),<br />
array("sun",-13329),<br />
array("suo",-13326),<br />
array("ta",-13318),<br />
array("tai",-13147),<br />
array("tan",-13138),<br />
array("tang",-13120),<br />
array("tao",-13107),<br />
array("te",-13096),<br />
array("teng",-13095),<br />
array("ti",-13091),<br />
array("tian",-13076),<br />
array("tiao",-13068),<br />
array("tie",-13063),<br />
array("ting",-13060),<br />
array("tong",-12888),<br />
array("tou",-12875),<br />
array("tu",-12871),<br />
array("tuan",-12860),<br />
array("tui",-12858),<br />
array("tun",-12852),<br />
array("tuo",-12849),<br />
array("wa",-12838),<br />
array("wai",-12831),<br />
array("wan",-12829),<br />
array("wang",-12812),<br />
array("wei",-12802),<br />
array("wen",-12607),<br />
array("weng",-12597),<br />
array("wo",-12594),<br />
array("wu",-12585),<br />
array("xi",-12556),<br />
array("xia",-12359),<br />
array("xian",-12346),<br />
array("xiang",-12320),<br />
array("xiao",-12300),<br />
array("xie",-12120),<br />
array("xin",-12099),<br />
array("xing",-12089),<br />
array("xiong",-12074),<br />
array("xiu",-12067),<br />
array("xu",-12058),<br />
array("xuan",-12039),<br />
array("xue",-11867),<br />
array("xun",-11861),<br />
array("ya",-11847),<br />
array("yan",-11831),<br />
array("yang",-11798),<br />
array("yao",-11781),<br />
array("ye",-11604),<br />
array("yi",-11589),<br />
array("yin",-11536),<br />
array("ying",-11358),<br />
array("yo",-11340),<br />
array("yong",-11339),<br />
array("you",-11324),<br />
array("yu",-11303),<br />
array("yuan",-11097),<br />
array("yue",-11077),<br />
array("yun",-11067),<br />
array("za",-11055),<br />
array("zai",-11052),<br />
array("zan",-11045),<br />
array("zang",-11041),<br />
array("zao",-11038),<br />
array("ze",-11024),<br />
array("zei",-11020),<br />
array("zen",-11019),<br />
array("zeng",-11018),<br />
array("zha",-11014),<br />
array("zhai",-10838),<br />
array("zhan",-10832),<br />
array("zhang",-10815),<br />
array("zhao",-10800),<br />
array("zhe",-10790),<br />
array("zhen",-10780),<br />
array("zheng",-10764),<br />
array("zhi",-10587),<br />
array("zhong",-10544),<br />
array("zhou",-10533),<br />
array("zhu",-10519),<br />
array("zhua",-10331),<br />
array("zhuai",-10329),<br />
array("zhuan",-10328),<br />
array("zhuang",-10322),<br />
array("zhui",-10315),<br />
array("zhun",-10309),<br />
array("zhuo",-10307),<br />
array("zi",-10296),<br />
array("zong",-10281),<br />
array("zou",-10274),<br />
array("zu",-10270),<br />
array("zuan",-10262),<br />
array("zui",-10260),<br />
array("zun",-10256),<br />
array("zuo",-10254));</p>
<p>function g($num){<br />
global $d;<br />
if($num&gt;0&amp;$num&lt;160){<br />
return chr($num);<br />
}<br />
elseif($num&lt;-20319||$num&gt;-10247){<br />
return "";<br />
}else{<br />
for($i=count($d)-1;$i&gt;=0;$i--)<br />
{if($d[$i][1]&lt;=$num)break;}<br />
return $d[$i][0];<br />
}<br />
}<br />
function c($str){<br />
$ret="";<br />
for($i=0;$i&lt;strlen($str);$i++){<br />
$p=ord(substr($str,$i,1));<br />
if($p&gt;160){<br />
$q=ord(substr($str,++$i,1));<br />
$p=$p*256+$q-65536;<br />
}<br />
$ret.=g($p);<br />
}<br />
return $ret;<br />
}</p>
<p>function utf82gb($utfstr){ // UTF-8汉字转GBK汉字<br />
if(function_exists('iconv')){ return iconv('utf-8','gbk',$utfstr); }<br />
global $UC2GBTABLE;<br />
$okstr = "";<br />
if(trim($utfstr)=="") return $utfstr;<br />
if(empty($UC2GBTABLE)){<br />
$filename = dirname(__FILE__) . "/";<br />
$fp = fopen($filename,"r");<br />
while($l = fgets($fp,15))<br />
{ $UC2GBTABLE[hexdec(substr($l, 7, 6))] = hexdec(substr($l, 0, 6));}<br />
fclose($fp);<br />
}<br />
$okstr = "";<br />
$ulen = strlen($utfstr);<br />
for($i=0;$i&lt;$ulen;$i++)<br />
{<br />
$c = $utfstr[$i];<br />
$cb = decbin(ord($utfstr[$i]));<br />
if(strlen($cb)==8){<br />
$csize = strpos(decbin(ord($cb)),"0");<br />
for($j=0;$j &lt; $csize;$j++){<br />
$i++; $c .= $utfstr[$i];<br />
}<br />
$c = utf82u($c);<br />
if(isset($UC2GBTABLE[$c])){<br />
$c = dechex($UC2GBTABLE[$c]+0x8080);<br />
$okstr .= chr(hexdec($c[0].$c[1])).chr(hexdec($c[2].$c[3]));<br />
}<br />
else<br />
{ $okstr .= "&amp;#".$c.";";}<br />
}<br />
else $okstr .= $c;<br />
}<br />
$okstr = trim($okstr);<br />
return $okstr;<br />
}<br />
//说明：将中文转换为拼音&lt;br&gt;";<br />
//如果是utf—8中文 先转换为gbk中文 再转换<br />
//$str = utf82gb($str);<br />
// utf8中文 装gbk中文<br />
//示例:<br />
//echo c($str);<br />
?&gt;</p>
]]></content:encoded>
			<wfw:commentRss>http://www.3code.cn/php-pinyin/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>php生成随机字符串</title>
		<link>http://www.3code.cn/php-create-randchar/</link>
		<comments>http://www.3code.cn/php-create-randchar/#comments</comments>
		<pubDate>Wed, 01 Sep 2010 03:15:55 +0000</pubDate>
		<dc:creator>寒林</dc:creator>
				<category><![CDATA[PHP]]></category>
		<category><![CDATA[PHP 函数]]></category>

		<guid isPermaLink="false">http://www.3code.cn/?p=2065</guid>
		<description><![CDATA[php生成随机字符串，可以保存为一个函数来使用。]]></description>
			<content:encoded><![CDATA[<p>&lt;?</p>
<p>$str = "0123456789abcdefghijklmnopqrstuvwxyz";   //输出字符集<br />
$n = 8;   //   输出串长度<br />
$len = strlen($str)-1;<br />
for($i=0 ; $i&lt;$n; $i++){<br />
$s .=  $str[rand(0,$len)];<br />
}</p>
<p>echo $s;</p>
<p>?&gt;</p>
<p>可以保存为一个函数来使用。</p>
]]></content:encoded>
			<wfw:commentRss>http://www.3code.cn/php-create-randchar/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>解决mysql的utf8中文排序的方法</title>
		<link>http://www.3code.cn/mysql-utf8-gbk/</link>
		<comments>http://www.3code.cn/mysql-utf8-gbk/#comments</comments>
		<pubDate>Tue, 31 Aug 2010 08:52:34 +0000</pubDate>
		<dc:creator>寒林</dc:creator>
				<category><![CDATA[PHP]]></category>
		<category><![CDATA[mysql]]></category>
		<category><![CDATA[PHP 函数]]></category>

		<guid isPermaLink="false">http://www.3code.cn/?p=2057</guid>
		<description><![CDATA[在编译源码时加上gbk编码即可，如果已经安装好了，重新编译再安装，重新编译安装一般不会影响mysql的已有设置，包括数据都不会受到影响。]]></description>
			<content:encoded><![CDATA[<p>在mysql中使用默认字符集为utf8，结果想要把中文按拼音排序出现了问题，排出来的顺序乱七八糟，不是我们想要的结果。</p>
<p>解决办法如下：<br />
1、不想改变表定义及默认编码的情况，将字段先转换成gbk编码再排序：</p>
<p>SELECT * FROM table ORDER BY CONVERT( chinese_field USING gbk ) ;</p>
<p>前提是在安装mysql时安装了gbk字符集，不然会报错：</p>
<p>#1115 - Unknown character set: 'gbk'</p>
<p>在编译源码时加上gbk编码即可，如果已经安装好了，重新编译再安装，重新编译安装一般不会影响mysql的已有设置，包括数据都不会受到影响。</p>
<p>2、直接将字段的字符集改成gbk，然后直接使用order by 排序即可。</p>
<p>mysql 5.x支持某列单独定义字符集。</p>
<p>3、网上也有人说将字段定义加上binary属性也能达到效果，未作测试，不敢评论。</p>
<p>mysql的文档中也提到字符集校对规则：</p>
<p>SELECT * FROM t1 ORDER BY a COLLATE utf8_bin;</p>
<p>但此仅仅只影响校对规则，并不影响字符的字符集本身。</p>
]]></content:encoded>
			<wfw:commentRss>http://www.3code.cn/mysql-utf8-gbk/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>PHP取得当前插入数据库中记录的ID</title>
		<link>http://www.3code.cn/php-new-mysql-id/</link>
		<comments>http://www.3code.cn/php-new-mysql-id/#comments</comments>
		<pubDate>Fri, 20 Aug 2010 03:00:44 +0000</pubDate>
		<dc:creator>寒林</dc:creator>
				<category><![CDATA[PHP]]></category>
		<category><![CDATA[PHP 函数]]></category>
		<category><![CDATA[PHP数据库操作]]></category>

		<guid isPermaLink="false">http://www.3code.cn/?p=1969</guid>
		<description><![CDATA[PHP取得当前插入数据库中记录的ID]]></description>
			<content:encoded><![CDATA[<p>在PHP中，经常需要把插入数据库中的id值取出来，而正好有这么一个函数：</p>
<p>&lt;?php<br />
//执行插入数据库的语句<br />
//……<br />
$getID=mysql_insert_id();//$getID即为最后一条记录的ID<br />
?&gt;</p>
<p>PHP 函数 mysql_insert_id() 是返回在最后一次执行了 INSERT 查询后，由 AUTO_INCREMENT 定义的字段的值</p>
]]></content:encoded>
			<wfw:commentRss>http://www.3code.cn/php-new-mysql-id/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>wordpress 常用函数参考手册</title>
		<link>http://www.3code.cn/wordpress-functions/</link>
		<comments>http://www.3code.cn/wordpress-functions/#comments</comments>
		<pubDate>Wed, 21 Jul 2010 07:18:03 +0000</pubDate>
		<dc:creator>寒林</dc:creator>
				<category><![CDATA[WORDPRESS主题技术]]></category>
		<category><![CDATA[PHP 函数]]></category>
		<category><![CDATA[wp]]></category>

		<guid isPermaLink="false">http://www.3code.cn/?p=1720</guid>
		<description><![CDATA[wordpress 常用函数参考手册]]></description>
			<content:encoded><![CDATA[<p>WordPress定义了许多有用的PHP函数。一些函数，称为模板标记，是指特别是用于WordPress的主题。还有一些函数相关的行动和过滤器（插件的API ） ，因而主要用于开发插件。其余的都是用来建立核心WordPress的功能。</p>
<p>许 多核心WordPress的功能是有用的插件和主题开发。因此，本文列出了大部分的核心函数，但不包括模板标记。在页面的底部，有一节列出其他资源的调查 了解WordPress的函数。</p>
<p>注：本参考适用于版本2.1和更高版本的WordPress的。</p>
<table width="100%" border="0" cellspacing="10">
<tbody>
<tr valign="top">
<td width="50%">
<table class="widefat" border="0">
<tbody>
<tr style="background: rgb(70, 70, 70) none repeat scroll 0% 50%; -moz-background-clip: border; -moz-background-origin: padding; -moz-background-inline-policy: continuous; color: rgb(215, 215, 215);">
<th> <strong>Post, Page, Attachment and Bookmarks Functions</strong></th>
</tr>
<tr>
<td><strong>Posts</strong></p>
<ul>
<li> <tt><a title="Function Reference/get children" href="http://codex.wordpress.org/Function_Reference/get_children">get_children</a></tt></li>
<li> <tt><a title="Function Reference/get extended" href="http://codex.wordpress.org/Function_Reference/get_extended">get_extended</a></tt></li>
<li> <tt><a title="Function Reference/get post" href="http://codex.wordpress.org/Function_Reference/get_post">get_post</a></tt></li>
<li> <tt><a title="Function Reference/get post ancestors" href="http://codex.wordpress.org/Function_Reference/get_post_ancestors">get_post_ancestors</a></tt></li>
<li> <tt><a title="Function Reference/get post mime type" href="http://codex.wordpress.org/Function_Reference/get_post_mime_type">get_post_mime_type</a></tt></li>
<li> <tt><a title="Function Reference/get post status" href="http://codex.wordpress.org/Function_Reference/get_post_status">get_post_status</a></tt></li>
<li> <tt><a title="Function Reference/get post type" href="http://codex.wordpress.org/Function_Reference/get_post_type">get_post_type</a></tt></li>
<li> <tt><a title="Template Tags/get posts" href="http://codex.wordpress.org/Template_Tags/get_posts">get_posts</a></tt></li>
<li> <tt><a title="Function Reference/is post" href="http://codex.wordpress.org/Function_Reference/is_post">is_post</a></tt></li>
<li> <tt><a title="Function Reference/is single" href="http://codex.wordpress.org/Function_Reference/is_single">is_single</a></tt></li>
<li> <tt><a title="Function Reference/is sticky" href="http://codex.wordpress.org/Function_Reference/is_sticky">is_sticky</a></tt></li>
<li> <tt><a title="Function Reference/wp get recent posts" href="http://codex.wordpress.org/Function_Reference/wp_get_recent_posts">wp_get_recent_posts</a></tt></li>
<li> <tt><a title="Function Reference/wp get single post" href="http://codex.wordpress.org/Function_Reference/wp_get_single_post">wp_get_single_post</a></tt></li>
</ul>
<p><strong>Post insertion/removal</strong></p>
<ul>
<li> <tt><a title="Function Reference/wp delete post" href="http://codex.wordpress.org/Function_Reference/wp_delete_post">wp_delete_post</a></tt></li>
<li> <tt><a title="Function Reference/wp insert post" href="http://codex.wordpress.org/Function_Reference/wp_insert_post">wp_insert_post</a></tt></li>
<li> <tt><a title="Function Reference/wp publish post" href="http://codex.wordpress.org/Function_Reference/wp_publish_post">wp_publish_post</a></tt></li>
<li> <tt><a title="Function Reference/wp update post" href="http://codex.wordpress.org/Function_Reference/wp_update_post">wp_update_post</a></tt></li>
</ul>
<p><strong>Pages</strong></p>
<ul>
<li> <tt><a title="Function Reference/get all page ids" href="http://codex.wordpress.org/Function_Reference/get_all_page_ids">get_all_page_ids</a></tt></li>
<li> <tt><a title="Function Reference/get page" href="http://codex.wordpress.org/Function_Reference/get_page">get_page</a></tt></li>
<li> <tt><a title="Function Reference/get page by path" href="http://codex.wordpress.org/Function_Reference/get_page_by_path">get_page_by_path</a></tt></li>
<li> <tt><a title="Function Reference/get page by title" href="http://codex.wordpress.org/Function_Reference/get_page_by_title">get_page_by_title</a></tt></li>
<li> <tt><a title="Function Reference/get page children" href="http://codex.wordpress.org/Function_Reference/get_page_children">get_page_children</a></tt></li>
<li> <tt><a title="Function Reference/get page hierarchy" href="http://codex.wordpress.org/Function_Reference/get_page_hierarchy">get_page_hierarchy</a></tt></li>
<li> <tt><a title="Function Reference/get page uri" href="http://codex.wordpress.org/Function_Reference/get_page_uri">get_page_uri</a></tt></li>
<li> <tt><a title="Function Reference/get pages" href="http://codex.wordpress.org/Function_Reference/get_pages">get_pages</a></tt></li>
<li> <tt><a title="Function Reference/is page" href="http://codex.wordpress.org/Function_Reference/is_page">is_page</a></tt></li>
<li> <tt><a title="Function Reference/page uri index" href="http://codex.wordpress.org/Function_Reference/page_uri_index">page_uri_index</a></tt></li>
<li> <tt><a title="Template Tags/wp list pages" href="http://codex.wordpress.org/Template_Tags/wp_list_pages">wp_list_pages</a></tt></li>
</ul>
<p><strong>Custom field (postmeta)</strong></p>
<ul>
<li> <tt><a title="Function Reference/add post meta" href="http://codex.wordpress.org/Function_Reference/add_post_meta">add_post_meta</a></tt></li>
<li> <tt><a title="Function Reference/delete post meta" href="http://codex.wordpress.org/Function_Reference/delete_post_meta">delete_post_meta</a></tt></li>
<li> <tt><a title="Function Reference/get post custom" href="http://codex.wordpress.org/Function_Reference/get_post_custom">get_post_custom</a></tt></li>
<li> <tt><a title="Function Reference/get post custom keys" href="http://codex.wordpress.org/Function_Reference/get_post_custom_keys">get_post_custom_keys</a></tt></li>
<li> <tt><a title="Function Reference/get post custom values" href="http://codex.wordpress.org/Function_Reference/get_post_custom_values">get_post_custom_values</a></tt></li>
<li> <tt><a title="Function Reference/get post meta" href="http://codex.wordpress.org/Function_Reference/get_post_meta">get_post_meta</a></tt></li>
<li> <tt><a title="Function Reference/update post meta" href="http://codex.wordpress.org/Function_Reference/update_post_meta">update_post_meta</a></tt></li>
</ul>
<p><strong>Attachments</strong></p>
<ul>
<li> <tt><a title="Function Reference/get attached file" href="http://codex.wordpress.org/Function_Reference/get_attached_file">get_attached_file</a></tt></li>
<li> <tt><a title="Function Reference/is attachment" href="http://codex.wordpress.org/Function_Reference/is_attachment">is_attachment</a></tt></li>
<li> <tt><a title="Function Reference/is local attachment" href="http://codex.wordpress.org/Function_Reference/is_local_attachment">is_local_attachment</a></tt></li>
<li> <tt><a title="Function Reference/update attached file" href="http://codex.wordpress.org/Function_Reference/update_attached_file">update_attached_file</a></tt></li>
<li> <tt><a title="Function Reference/wp attachment is image" href="http://codex.wordpress.org/Function_Reference/wp_attachment_is_image">wp_attachment_is_image</a></tt></li>
<li> <tt><a title="Function Reference/wp insert attachment" href="http://codex.wordpress.org/Function_Reference/wp_insert_attachment">wp_insert_attachment</a></tt></li>
<li> <tt><a title="Function Reference/wp delete attachment" href="http://codex.wordpress.org/Function_Reference/wp_delete_attachment">wp_delete_attachment</a></tt></li>
<li> <tt><a title="Function Reference/wp get attachment image" href="http://codex.wordpress.org/Function_Reference/wp_get_attachment_image">wp_get_attachment_image</a></tt></li>
<li> <tt><a title="Function Reference/wp get attachment image src" href="http://codex.wordpress.org/Function_Reference/wp_get_attachment_image_src">wp_get_attachment_image_src</a></tt></li>
<li> <tt><a title="Function Reference/wp get attachment metadata" href="http://codex.wordpress.org/Function_Reference/wp_get_attachment_metadata">wp_get_attachment_metadata</a></tt></li>
<li> <tt><a title="Function Reference/wp get attachment thumb file" href="http://codex.wordpress.org/Function_Reference/wp_get_attachment_thumb_file">wp_get_attachment_thumb_file</a></tt></li>
<li> <tt><a title="Function Reference/wp get attachment thumb url" href="http://codex.wordpress.org/Function_Reference/wp_get_attachment_thumb_url">wp_get_attachment_thumb_url</a></tt></li>
<li> <tt><a title="Function Reference/wp get attachment url" href="http://codex.wordpress.org/Function_Reference/wp_get_attachment_url">wp_get_attachment_url</a></tt></li>
<li> <tt><a title="Function Reference/wp check for changed slugs" href="http://codex.wordpress.org/Function_Reference/wp_check_for_changed_slugs">wp_check_for_changed_slugs</a></tt></li>
<li> <tt><a title="Function Reference/wp count posts" href="http://codex.wordpress.org/Function_Reference/wp_count_posts">wp_count_posts</a></tt></li>
<li> <tt><a title="Function Reference/wp mime type icon" href="http://codex.wordpress.org/Function_Reference/wp_mime_type_icon">wp_mime_type_icon</a></tt></li>
<li> <tt><a title="Function Reference/wp update attachment metadata" href="http://codex.wordpress.org/Function_Reference/wp_update_attachment_metadata">wp_update_attachment_metadata</a></tt></li>
</ul>
<p><strong>Bookmarks</strong></p>
<ul>
<li> <tt><a title="Function Reference/get bookmark" href="http://codex.wordpress.org/Function_Reference/get_bookmark">get_bookmark</a></tt></li>
<li> <tt><a title="Function Reference/get bookmarks" href="http://codex.wordpress.org/Function_Reference/get_bookmarks">get_bookmarks</a></tt></li>
<li> <tt><a title="Template Tags/wp list bookmarks" href="http://codex.wordpress.org/Template_Tags/wp_list_bookmarks">wp_list_bookmarks</a></tt></li>
</ul>
<p><strong>Others</strong></p>
<ul>
<li> <tt><a title="Function Reference/add meta box" href="http://codex.wordpress.org/Function_Reference/add_meta_box">add_meta_box</a></tt></li>
<li> <tt><a title="Function Reference/get the ID" href="http://codex.wordpress.org/Function_Reference/get_the_ID">get_the_ID</a></tt></li>
<li> <tt><a title="Function Reference/get the author" href="http://codex.wordpress.org/Function_Reference/get_the_author">get_the_author</a></tt></li>
<li> <tt><a title="Function Reference/get the content" href="http://codex.wordpress.org/Function_Reference/get_the_content">get_the_content</a></tt></li>
<li> <tt><a title="Function Reference/wp get post categories" href="http://codex.wordpress.org/Function_Reference/wp_get_post_categories">wp_get_post_categories</a></tt></li>
<li> <tt><a title="Function Reference/wp set post categories" href="http://codex.wordpress.org/Function_Reference/wp_set_post_categories">wp_set_post_categories</a></tt></li>
<li> <tt><a title="Function Reference/wp trim excerpt" href="http://codex.wordpress.org/Function_Reference/wp_trim_excerpt">wp_trim_excerpt</a></tt></li>
</ul>
</td>
</tr>
</tbody>
</table>
</td>
<td width="50%">
<table class="widefat" border="0">
<tbody>
<tr style="background: rgb(70, 70, 70) none repeat scroll 0% 50%; -moz-background-clip: border; -moz-background-origin: padding; -moz-background-inline-policy: continuous; color: rgb(215, 215, 215);">
<th> <strong>Category, Tag and Taxonomy Functions</strong></th>
</tr>
<tr>
<td><strong>Categories</strong></p>
<ul>
<li> <tt><a title="Function Reference/cat is ancestor of" href="http://codex.wordpress.org/Function_Reference/cat_is_ancestor_of">cat_is_ancestor_of</a></tt></li>
<li> <tt><a title="Function Reference/get all category ids" href="http://codex.wordpress.org/Function_Reference/get_all_category_ids">get_all_category_ids</a></tt></li>
<li> <tt><a title="Function Reference/get cat ID" href="http://codex.wordpress.org/Function_Reference/get_cat_ID">get_cat_ID</a></tt></li>
<li> <tt><a title="Function Reference/get cat name" href="http://codex.wordpress.org/Function_Reference/get_cat_name">get_cat_name</a></tt></li>
<li> <tt><a title="Function Reference/get categories" href="http://codex.wordpress.org/Function_Reference/get_categories">get_categories</a></tt></li>
<li> <tt><a title="Function Reference/get category" href="http://codex.wordpress.org/Function_Reference/get_category">get_category</a></tt></li>
<li> <tt><a title="Function Reference/get category by path" href="http://codex.wordpress.org/Function_Reference/get_category_by_path">get_category_by_path</a></tt></li>
<li> <tt><a title="Function Reference/get category by slug" href="http://codex.wordpress.org/Function_Reference/get_category_by_slug">get_category_by_slug</a></tt></li>
<li> <tt><a title="Function Reference/get category link" href="http://codex.wordpress.org/Function_Reference/get_category_link"> get_category_link</a></tt></li>
<li> <tt><a title="Function Reference/get category parents" href="http://codex.wordpress.org/Function_Reference/get_category_parents">get_category_parents</a></tt></li>
<li> <tt><a title="Function Reference/get the category" href="http://codex.wordpress.org/Function_Reference/get_the_category">get_the_category</a></tt></li>
<li> <tt><a title="Function Reference/in category" href="http://codex.wordpress.org/Function_Reference/in_category">in_category</a></tt></li>
<li> <tt><a title="Function Reference/is category" href="http://codex.wordpress.org/Function_Reference/is_category">is_category</a></tt></li>
</ul>
<p><strong>Category Creation</strong></p>
<ul>
<li> <tt><a title="FunctionReference/wp create category" href="http://codex.wordpress.org/FunctionReference/wp_create_category">wp_create_category</a></tt></li>
<li> <tt><a title="FunctionReference/wp insert category" href="http://codex.wordpress.org/FunctionReference/wp_insert_category">wp_insert_category</a></tt></li>
</ul>
<p><strong>Tags</strong></p>
<ul>
<li> <tt><a title="Function Reference/get tag" href="http://codex.wordpress.org/Function_Reference/get_tag">get_tag</a></tt></li>
<li> <tt><a title="Function Reference/get tag link" href="http://codex.wordpress.org/Function_Reference/get_tag_link">get_tag_link</a></tt></li>
<li> <tt><a title="Function Reference/get tags" href="http://codex.wordpress.org/Function_Reference/get_tags">get_tags</a></tt></li>
<li> <tt><a title="Function Reference/get the tag list" href="http://codex.wordpress.org/Function_Reference/get_the_tag_list">get_the_tag_list</a></tt></li>
<li> <tt><a title="Function Reference/get the tags" href="http://codex.wordpress.org/Function_Reference/get_the_tags">get_the_tags</a></tt></li>
<li> <tt><a title="Function Reference/is tag" href="http://codex.wordpress.org/Function_Reference/is_tag">is_tag</a></tt></li>
</ul>
<p><strong>Taxonomy</strong></p>
<ul>
<li> <tt><a title="Function Reference/get term" href="http://codex.wordpress.org/Function_Reference/get_term">get_term</a></tt></li>
<li> <tt><a title="Function Reference/get the term list" href="http://codex.wordpress.org/Function_Reference/get_the_term_list">get_the_term_list</a></tt></li>
<li> <tt><a title="Function Reference/get term by" href="http://codex.wordpress.org/Function_Reference/get_term_by">get_term_by</a></tt></li>
<li> <tt><a title="Function Reference/get term children" href="http://codex.wordpress.org/Function_Reference/get_term_children">get_term_children</a></tt></li>
<li> <tt><a title="Function Reference/get terms" href="http://codex.wordpress.org/Function_Reference/get_terms">get_terms</a></tt></li>
<li> <tt><a title="Function Reference/is taxonomy" href="http://codex.wordpress.org/Function_Reference/is_taxonomy">is_taxonomy</a></tt></li>
<li> <tt><a title="Function Reference/is taxonomy hierarchical" href="http://codex.wordpress.org/Function_Reference/is_taxonomy_hierarchical">is_taxonomy_hierarchical</a></tt></li>
<li> <tt><a title="Function Reference/is term" href="http://codex.wordpress.org/Function_Reference/is_term">is_term</a></tt></li>
<li> <tt><a title="Function Reference/register taxonomy" href="http://codex.wordpress.org/Function_Reference/register_taxonomy">register_taxonomy</a></tt></li>
<li> <tt><a title="Function Reference/wp get object terms" href="http://codex.wordpress.org/Function_Reference/wp_get_object_terms">wp_get_object_terms</a></tt></li>
<li> <tt><a title="Function Reference/wp insert term" href="http://codex.wordpress.org/Function_Reference/wp_insert_term">wp_insert_term</a></tt></li>
<li> <tt><a title="Function Reference/wp update term" href="http://codex.wordpress.org/Function_Reference/wp_update_term">wp_update_term</a></tt></li>
</ul>
</td>
</tr>
</tbody>
</table>
</td>
</tr>
<tr valign="top">
<td width="50%">
<table class="widefat" border="0">
<tbody>
<tr style="background: rgb(70, 70, 70) none repeat scroll 0% 50%; -moz-background-clip: border; -moz-background-origin: padding; -moz-background-inline-policy: continuous; color: rgb(215, 215, 215);">
<th> <strong>User and Author Functions</strong></th>
</tr>
<tr>
<td><strong>Users and Authors</strong></p>
<ul>
<li> <tt><a title="Function Reference/auth redirect" href="http://codex.wordpress.org/Function_Reference/auth_redirect">auth_redirect</a></tt></li>
<li> <tt><a title="Function Reference/email exists" href="http://codex.wordpress.org/Function_Reference/email_exists">email_exists</a></tt></li>
<li> <tt><a title="Function Reference/get currentuserinfo" href="http://codex.wordpress.org/Function_Reference/get_currentuserinfo">get_currentuserinfo</a></tt></li>
<li> <tt><a title="Function Reference/get profile" href="http://codex.wordpress.org/Function_Reference/get_profile">get_profile</a></tt></li>
<li> <tt><a title="Function Reference/get userdata" href="http://codex.wordpress.org/Function_Reference/get_userdata">get_userdata</a></tt></li>
<li> <tt><a title="Function Reference/get userdatabylogin" href="http://codex.wordpress.org/Function_Reference/get_userdatabylogin">get_userdatabylogin</a></tt></li>
<li> <tt><a title="Function Reference/get usernumposts" href="http://codex.wordpress.org/Function_Reference/get_usernumposts">get_usernumposts</a></tt></li>
<li> <tt><a title="Function Reference/set current user" href="http://codex.wordpress.org/Function_Reference/set_current_user">set_current_user</a></tt></li>
<li> <tt><a title="Function Reference/user pass ok" href="http://codex.wordpress.org/Function_Reference/user_pass_ok">user_pass_ok</a></tt></li>
<li> <tt><a title="Function Reference/username exists" href="http://codex.wordpress.org/Function_Reference/username_exists">username_exists</a></tt></li>
<li> <tt><a title="Function Reference/validate username" href="http://codex.wordpress.org/Function_Reference/validate_username">validate_username</a></tt></li>
<li> <tt><a class="mw-redirect" title="Function Reference/wp get current user" href="http://codex.wordpress.org/Function_Reference/wp_get_current_user">wp_get_current_user</a></tt></li>
<li> <tt><a title="Function Reference/wp set current user" href="http://codex.wordpress.org/Function_Reference/wp_set_current_user">wp_set_current_user</a></tt></li>
</ul>
<p><strong>User meta</strong></p>
<ul>
<li> <tt><a title="Function Reference/delete usermeta" href="http://codex.wordpress.org/Function_Reference/delete_usermeta">delete_usermeta</a></tt></li>
<li> <tt><a title="Function Reference/get usermeta" href="http://codex.wordpress.org/Function_Reference/get_usermeta">get_usermeta</a></tt></li>
<li> <tt><a title="Function Reference/update usermeta" href="http://codex.wordpress.org/Function_Reference/update_usermeta">update_usermeta</a></tt></li>
</ul>
<p><strong>User insertion/removal</strong></p>
<ul>
<li> <tt><a title="Function Reference/wp create user" href="http://codex.wordpress.org/Function_Reference/wp_create_user">wp_create_user</a></tt></li>
<li> <tt><a title="Function Reference/wp delete user" href="http://codex.wordpress.org/Function_Reference/wp_delete_user">wp_delete_user</a></tt></li>
<li> <tt><a title="Function Reference/wp insert user" href="http://codex.wordpress.org/Function_Reference/wp_insert_user">wp_insert_user</a></tt></li>
<li> <tt><a title="Function Reference/wp update user" href="http://codex.wordpress.org/Function_Reference/wp_update_user">wp_update_user</a></tt></li>
</ul>
<p><strong>Login / Logout</strong></p>
<ul>
<li> <tt><a title="Function Reference/is user logged in" href="http://codex.wordpress.org/Function_Reference/is_user_logged_in">is_user_logged_in</a></tt></li>
<li> <tt><a title="Function Reference/wp signon" href="http://codex.wordpress.org/Function_Reference/wp_signon">wp_signon</a></tt></li>
</ul>
</td>
</tr>
</tbody>
</table>
</td>
<td width="50%">
<table class="widefat" border="0">
<tbody>
<tr style="background: rgb(70, 70, 70) none repeat scroll 0% 50%; -moz-background-clip: border; -moz-background-origin: padding; -moz-background-inline-policy: continuous; color: rgb(215, 215, 215);">
<th> <strong>Feed Functions</strong></th>
</tr>
<tr>
<td>
<ul>
<li> <tt><a title="Function Reference/bloginfo rss" href="http://codex.wordpress.org/Function_Reference/bloginfo_rss">bloginfo_rss</a></tt></li>
<li> <tt><a title="Function Reference/comment author rss" href="http://codex.wordpress.org/Function_Reference/comment_author_rss">comment_author_rss</a></tt></li>
<li> <tt><a title="Function Reference/comment link" href="http://codex.wordpress.org/Function_Reference/comment_link">comment_link</a></tt></li>
<li> <tt><a title="Function Reference/comment text rss" href="http://codex.wordpress.org/Function_Reference/comment_text_rss">comment_text_rss</a></tt></li>
<li> <tt><a title="Function Reference/do feed" href="http://codex.wordpress.org/Function_Reference/do_feed">do_feed</a></tt></li>
<li> <tt><a title="Function Reference/do feed atom" href="http://codex.wordpress.org/Function_Reference/do_feed_atom">do_feed_atom</a></tt></li>
<li> <tt><a title="Function Reference/do feed rdf" href="http://codex.wordpress.org/Function_Reference/do_feed_rdf">do_feed_rdf</a></tt></li>
<li> <tt><a title="Function Reference/do feed rss" href="http://codex.wordpress.org/Function_Reference/do_feed_rss">do_feed_rss</a></tt></li>
<li> <tt><a title="Function Reference/do feed rss2" href="http://codex.wordpress.org/Function_Reference/do_feed_rss2">do_feed_rss2</a></tt></li>
<li> <tt><a title="Function Reference/fetch rss" href="http://codex.wordpress.org/Function_Reference/fetch_rss">fetch_rss</a></tt></li>
<li> <tt><a title="Function Reference/get author feed link" href="http://codex.wordpress.org/Function_Reference/get_author_feed_link">get_author_feed_link</a></tt></li>
<li> <tt><a title="Function Reference/get bloginfo rss" href="http://codex.wordpress.org/Function_Reference/get_bloginfo_rss">get_bloginfo_rss</a></tt></li>
<li> <tt><a title="Function Reference/get category feed link" href="http://codex.wordpress.org/Function_Reference/get_category_feed_link">get_category_feed_link</a></tt></li>
<li> <tt><a title="Function Reference/get comment link" href="http://codex.wordpress.org/Function_Reference/get_comment_link">get_comment_link</a></tt></li>
<li> <tt><a title="Function Reference/get comment author rss" href="http://codex.wordpress.org/Function_Reference/get_comment_author_rss">get_comment_author_rss</a></tt></li>
<li> <tt><a title="Function Reference/get post comments feed link" href="http://codex.wordpress.org/Function_Reference/get_post_comments_feed_link">get_post_comments_feed_link</a></tt></li>
<li> <tt><a title="Function Reference/get rss" href="http://codex.wordpress.org/Function_Reference/get_rss">get_rss</a></tt></li>
<li> <tt><a title="Function Reference/get search comments feed link" href="http://codex.wordpress.org/Function_Reference/get_search_comments_feed_link">get_search_comments_feed_link</a></tt></li>
<li> <tt><a title="Function Reference/get search feed link" href="http://codex.wordpress.org/Function_Reference/get_search_feed_link">get_search_feed_link</a></tt></li>
<li> <tt><a title="Function Reference/get the category rss" href="http://codex.wordpress.org/Function_Reference/get_the_category_rss">get_the_category_rss</a></tt></li>
<li> <tt><a title="Function Reference/get the title rss" href="http://codex.wordpress.org/Function_Reference/get_the_title_rss">get_the_title_rss</a></tt></li>
<li> <tt><a title="Template Tags/permalink single rss" href="http://codex.wordpress.org/Template_Tags/permalink_single_rss">permalink_single_rss</a></tt></li>
<li> <tt><a title="Function Reference/post comments feed link" href="http://codex.wordpress.org/Function_Reference/post_comments_feed_link">post_comments_feed_link</a></tt></li>
<li> <tt><a title="Function Reference/rss enclosure" href="http://codex.wordpress.org/Function_Reference/rss_enclosure">rss_enclosure</a></tt></li>
<li> <tt><a title="Function Reference/the title rss" href="http://codex.wordpress.org/Function_Reference/the_title_rss">the_title_rss</a></tt></li>
<li> <tt><a title="Function Reference/the category rss" href="http://codex.wordpress.org/Function_Reference/the_category_rss">the_category_rss</a></tt></li>
<li> <tt><a title="Function Reference/the content rss" href="http://codex.wordpress.org/Function_Reference/the_content_rss">the_content_rss</a></tt></li>
<li> <tt><a title="Function Reference/the excerpt rss" href="http://codex.wordpress.org/Function_Reference/the_excerpt_rss">the_excerpt_rss</a></tt></li>
<li> <tt><a title="Function Reference/wp rss" href="http://codex.wordpress.org/Function_Reference/wp_rss">wp_rss</a></tt></li>
</ul>
</td>
</tr>
</tbody>
</table>
</td>
</tr>
<tr valign="top">
<td width="50%">
<table class="widefat" border="0">
<tbody>
<tr style="background: rgb(70, 70, 70) none repeat scroll 0% 50%; -moz-background-clip: border; -moz-background-origin: padding; -moz-background-inline-policy: continuous; color: rgb(215, 215, 215);">
<th> <strong>Comment, Ping, and Trackback Functions</strong></th>
</tr>
<tr>
<td>
<ul>
<li> <tt><a title="Function Reference/add ping" href="http://codex.wordpress.org/Function_Reference/add_ping">add_ping</a></tt></li>
<li> <tt><a title="Function Reference/check comment" href="http://codex.wordpress.org/Function_Reference/check_comment">check_comment</a></tt></li>
<li> <tt><a title="Function Reference/discover pingback server uri" href="http://codex.wordpress.org/Function_Reference/discover_pingback_server_uri">discover_pingback_server_uri</a></tt></li>
<li> <tt><a title="Function Reference/do all pings" href="http://codex.wordpress.org/Function_Reference/do_all_pings">do_all_pings</a></tt></li>
<li> <tt><a title="Function Reference/do enclose" href="http://codex.wordpress.org/Function_Reference/do_enclose">do_enclose</a></tt></li>
<li> <tt><a title="Function Reference/do trackbacks" href="http://codex.wordpress.org/Function_Reference/do_trackbacks">do_trackbacks</a></tt></li>
<li> <tt><a title="Function Reference/generic ping" href="http://codex.wordpress.org/Function_Reference/generic_ping">generic_ping</a></tt></li>
<li> <tt><a title="Function Reference/get approved comments" href="http://codex.wordpress.org/Function_Reference/get_approved_comments">get_approved_comments</a></tt></li>
<li> <tt><a title="Function Reference/get comment" href="http://codex.wordpress.org/Function_Reference/get_comment">get_comment</a></tt></li>
<li> <tt><a title="Function Reference/get comments" href="http://codex.wordpress.org/Function_Reference/get_comments">get_comments</a></tt></li>
<li> <tt><a title="Function Reference/get enclosed" href="http://codex.wordpress.org/Function_Reference/get_enclosed">get_enclosed</a></tt></li>
<li> <tt><a title="Function Reference/get lastcommentmodified" href="http://codex.wordpress.org/Function_Reference/get_lastcommentmodified">get_lastcommentmodified</a></tt></li>
<li> <tt><a title="Function Reference/get pung" href="http://codex.wordpress.org/Function_Reference/get_pung">get_pung</a></tt></li>
<li> <tt><a title="Function Reference/get to ping" href="http://codex.wordpress.org/Function_Reference/get_to_ping">get_to_ping</a></tt></li>
<li> <tt><a title="Function Reference/next comments link" href="http://codex.wordpress.org/Function_Reference/next_comments_link">next_comments_link</a></tt></li>
<li> <tt><a title="Function Reference/paginate comments links" href="http://codex.wordpress.org/Function_Reference/paginate_comments_links">paginate_comments_links</a></tt></li>
<li> <tt><a title="Function Reference/pingback" href="http://codex.wordpress.org/Function_Reference/pingback">pingback</a></tt></li>
<li> <tt><a title="Function Reference/previous comments link" href="http://codex.wordpress.org/Function_Reference/previous_comments_link">previous_comments_link</a></tt></li>
<li> <tt><a title="Function Reference/privacy ping filter" href="http://codex.wordpress.org/Function_Reference/privacy_ping_filter">privacy_ping_filter</a></tt></li>
<li> <tt><a title="Function Reference/sanitize comment cookies" href="http://codex.wordpress.org/Function_Reference/sanitize_comment_cookies">sanitize_comment_cookies</a></tt></li>
<li> <tt><a title="Function Reference/trackback" href="http://codex.wordpress.org/Function_Reference/trackback">trackback</a></tt></li>
<li> <tt><a title="Function Reference/trackback url list" href="http://codex.wordpress.org/Function_Reference/trackback_url_list">trackback_url_list</a></tt></li>
<li> <tt><a title="Function Reference/weblog ping" href="http://codex.wordpress.org/Function_Reference/weblog_ping">weblog_ping</a></tt></li>
<li> <tt><a title="Function Reference/wp allow comment" href="http://codex.wordpress.org/Function_Reference/wp_allow_comment">wp_allow_comment</a></tt></li>
<li> <tt><a title="Function Reference/wp delete comment" href="http://codex.wordpress.org/Function_Reference/wp_delete_comment">wp_delete_comment</a></tt></li>
<li> <tt><a title="Function Reference/wp filter comment" href="http://codex.wordpress.org/Function_Reference/wp_filter_comment">wp_filter_comment</a></tt></li>
<li> <tt><a title="Function Reference/wp get comment status" href="http://codex.wordpress.org/Function_Reference/wp_get_comment_status">wp_get_comment_status</a></tt></li>
<li> <tt><a title="Function Reference/wp get current commenter" href="http://codex.wordpress.org/Function_Reference/wp_get_current_commenter">wp_get_current_commenter</a></tt></li>
<li> <tt><a title="Function Reference/wp insert comment" href="http://codex.wordpress.org/Function_Reference/wp_insert_comment">wp_insert_comment</a></tt></li>
<li> <tt><a title="Function Reference/wp new comment" href="http://codex.wordpress.org/Function_Reference/wp_new_comment">wp_new_comment</a></tt></li>
<li> <tt><a title="Function Reference/wp set comment status" href="http://codex.wordpress.org/Function_Reference/wp_set_comment_status">wp_set_comment_status</a></tt></li>
<li> <tt><a title="Function Reference/wp throttle comment flood" href="http://codex.wordpress.org/Function_Reference/wp_throttle_comment_flood">wp_throttle_comment_flood</a></tt></li>
<li> <tt><a title="Function Reference/wp update comment" href="http://codex.wordpress.org/Function_Reference/wp_update_comment">wp_update_comment</a></tt></li>
<li> <tt><a title="Function Reference/wp update comment count" href="http://codex.wordpress.org/Function_Reference/wp_update_comment_count">wp_update_comment_count</a></tt></li>
</ul>
</td>
</tr>
</tbody>
</table>
</td>
<td width="50%">
<table class="widefat" border="0">
<tbody>
<tr style="background: rgb(70, 70, 70) none repeat scroll 0% 50%; -moz-background-clip: border; -moz-background-origin: padding; -moz-background-inline-policy: continuous; color: rgb(215, 215, 215);">
<th> <strong>Action, Filter, and Plugin Functions</strong></th>
</tr>
<tr>
<td><strong><a title="Plugin API/Filter Reference" href="http://codex.wordpress.org/Plugin_API/Filter_Reference">Filters</a></strong></p>
<ul>
<li> <tt><a title="Function Reference/add filter" href="http://codex.wordpress.org/Function_Reference/add_filter">add_filter</a></tt></li>
<li> <tt><a title="Function Reference/apply filters" href="http://codex.wordpress.org/Function_Reference/apply_filters">apply_filters</a></tt></li>
<li> <tt><a title="Function Reference/merge filters" href="http://codex.wordpress.org/Function_Reference/merge_filters">merge_filters</a></tt></li>
<li> <tt><a title="Function Reference/remove filter" href="http://codex.wordpress.org/Function_Reference/remove_filter">remove_filter</a></tt></li>
</ul>
<p><strong><a title="Plugin API/Action Reference" href="http://codex.wordpress.org/Plugin_API/Action_Reference">Actions</a></strong></p>
<ul>
<li> <tt><a title="Function Reference/add action" href="http://codex.wordpress.org/Function_Reference/add_action">add_action</a></tt></li>
<li> <tt><a title="Function Reference/did action" href="http://codex.wordpress.org/Function_Reference/did_action">did_action</a></tt></li>
<li> <tt><a title="Function Reference/do action" href="http://codex.wordpress.org/Function_Reference/do_action">do_action</a></tt></li>
<li> <tt><a title="Function Reference/do action ref array" href="http://codex.wordpress.org/Function_Reference/do_action_ref_array">do_action_ref_array</a></tt></li>
<li> <tt><a title="Function Reference/remove action" href="http://codex.wordpress.org/Function_Reference/remove_action">remove_action</a></tt></li>
</ul>
<p><strong><a title="Plugin API" href="http://codex.wordpress.org/Plugin_API">Plugins</a></strong></p>
<ul>
<li> <tt><a title="Function Reference/plugin basename" href="http://codex.wordpress.org/Function_Reference/plugin_basename">plugin_basename</a></tt></li>
<li> <tt><a title="Function Reference/register activation hook" href="http://codex.wordpress.org/Function_Reference/register_activation_hook">register_activation_hook</a></tt></li>
<li> <tt><a title="Function Reference/register deactivation hook" href="http://codex.wordpress.org/Function_Reference/register_deactivation_hook">register_deactivation_hook</a></tt></li>
<li> <tt><a title="Function Reference/register setting" href="http://codex.wordpress.org/Function_Reference/register_setting">register_setting</a></tt></li>
<li> <tt><a class="new" title="Function Reference/settings fields (page does not exist)" href="http://codex.wordpress.org/index.php?title=Function_Reference/settings_fields&amp;action=edit&amp;redlink=1">settings_fields</a></tt></li>
<li> <tt><a title="Function Reference/unregister setting" href="http://codex.wordpress.org/Function_Reference/unregister_setting">unregister_setting</a></tt></li>
</ul>
<p><strong><a title="Shortcode API" href="http://codex.wordpress.org/Shortcode_API">Shortcodes</a></strong></p>
<ul>
<li> <tt><a title="Function Reference/add shortcode" href="http://codex.wordpress.org/Function_Reference/add_shortcode">add_shortcode</a></tt></li>
<li> <tt><a title="Function Reference/do shortcode" href="http://codex.wordpress.org/Function_Reference/do_shortcode">do_shortcode</a></tt></li>
<li> <tt><a class="new" title="Function Reference/get shortcode regex (page does not exist)" href="http://codex.wordpress.org/index.php?title=Function_Reference/get_shortcode_regex&amp;action=edit&amp;redlink=1">get_shortcode_regex</a></tt></li>
<li> <tt><a class="new" title="Function Reference/do shortcode tag (page does not exist)" href="http://codex.wordpress.org/index.php?title=Function_Reference/do_shortcode_tag&amp;action=edit&amp;redlink=1">do_shortcode_tag</a></tt></li>
<li> <tt><a title="Function Reference/remove shortcode" href="http://codex.wordpress.org/Function_Reference/remove_shortcode">remove_shortcode</a></tt></li>
<li> <tt><a title="Function Reference/remove all shortcodes" href="http://codex.wordpress.org/Function_Reference/remove_all_shortcodes">remove_all_shortcodes</a></tt></li>
<li> <tt><a title="Function Reference/shortcode atts" href="http://codex.wordpress.org/Function_Reference/shortcode_atts">shortcode_atts</a></tt></li>
<li> <tt><a class="new" title="Function Reference/shortcode parse atts (page does not exist)" href="http://codex.wordpress.org/index.php?title=Function_Reference/shortcode_parse_atts&amp;action=edit&amp;redlink=1">shortcode_parse_atts</a></tt></li>
<li> <tt><a title="Function Reference/strip shortcodes" href="http://codex.wordpress.org/Function_Reference/strip_shortcodes">strip_shortcodes</a></tt></li>
</ul>
</td>
</tr>
</tbody>
</table>
</td>
</tr>
<tr valign="top">
<td width="50%">
<table class="widefat" border="0">
<tbody>
<tr style="background: rgb(70, 70, 70) none repeat scroll 0% 50%; -moz-background-clip: border; -moz-background-origin: padding; -moz-background-inline-policy: continuous; color: rgb(215, 215, 215);">
<th> <strong>Theme-Related Functions</strong></th>
</tr>
<tr>
<td><strong>Include functions</strong></p>
<ul>
<li> <tt><a title="Function Reference/comments template" href="http://codex.wordpress.org/Function_Reference/comments_template">comments_template</a></tt></li>
<li> <tt><a title="Function Reference/get footer" href="http://codex.wordpress.org/Function_Reference/get_footer">get_footer</a></tt></li>
<li> <tt><a title="Function Reference/get header" href="http://codex.wordpress.org/Function_Reference/get_header">get_header</a></tt></li>
<li> <tt><a title="Function Reference/get sidebar" href="http://codex.wordpress.org/Function_Reference/get_sidebar">get_sidebar</a></tt></li>
<li> <tt><a title="Function Reference/get search form" href="http://codex.wordpress.org/Function_Reference/get_search_form">get_search_form</a></tt></li>
</ul>
<p><strong>Other functions</strong></p>
<ul>
<li> <tt><a title="Function Reference/add custom image header" href="http://codex.wordpress.org/Function_Reference/add_custom_image_header">add_custom_image_header</a></tt></li>
<li> <tt><a title="Function Reference/get 404 template" href="http://codex.wordpress.org/Function_Reference/get_404_template">get_404_template</a></tt></li>
<li> <tt><a title="Function Reference/get archive template" href="http://codex.wordpress.org/Function_Reference/get_archive_template">get_archive_template</a></tt></li>
<li> <tt><a title="Function Reference/get attachment template" href="http://codex.wordpress.org/Function_Reference/get_attachment_template">get_attachment_template</a></tt></li>
<li> <tt><a title="Function Reference/get author template" href="http://codex.wordpress.org/Function_Reference/get_author_template">get_author_template</a></tt></li>
<li> <tt><a title="Function Reference/get category template" href="http://codex.wordpress.org/Function_Reference/get_category_template">get_category_template</a></tt></li>
<li> <tt><a title="Function Reference/get comments popup template" href="http://codex.wordpress.org/Function_Reference/get_comments_popup_template">get_comments_popup_template</a></tt></li>
<li> <tt><a title="Function Reference/get current theme" href="http://codex.wordpress.org/Function_Reference/get_current_theme">get_current_theme</a></tt></li>
<li> <tt><a title="Function Reference/get date template" href="http://codex.wordpress.org/Function_Reference/get_date_template">get_date_template</a></tt></li>
<li> <tt><a title="Function Reference/get header image" href="http://codex.wordpress.org/Function_Reference/get_header_image">get_header_image</a></tt></li>
<li> <tt><a title="Function Reference/get header textcolor" href="http://codex.wordpress.org/Function_Reference/get_header_textcolor">get_header_textcolor</a></tt></li>
<li> <tt><a title="Function Reference/get home template" href="http://codex.wordpress.org/Function_Reference/get_home_template">get_home_template</a></tt></li>
<li> <tt><a title="Function Reference/get locale stylesheet uri" href="http://codex.wordpress.org/Function_Reference/get_locale_stylesheet_uri">get_locale_stylesheet_uri</a></tt></li>
<li> <tt><a title="Function Reference/get page template" href="http://codex.wordpress.org/Function_Reference/get_page_template">get_page_template</a></tt></li>
<li> <tt><a title="Function Reference/get paged template" href="http://codex.wordpress.org/Function_Reference/get_paged_template">get_paged_template</a></tt></li>
<li> <tt><a title="Function Reference/get query template" href="http://codex.wordpress.org/Function_Reference/get_query_template">get_query_template</a></tt></li>
<li> <tt><a title="Function Reference/get search template" href="http://codex.wordpress.org/Function_Reference/get_search_template">get_search_template</a></tt></li>
<li> <tt><a title="Function Reference/get single template" href="http://codex.wordpress.org/Function_Reference/get_single_template">get_single_template</a></tt></li>
<li> <tt><a title="Function Reference/get stylesheet" href="http://codex.wordpress.org/Function_Reference/get_stylesheet">get_stylesheet</a></tt></li>
<li> <tt><a title="Function Reference/get stylesheet directory" href="http://codex.wordpress.org/Function_Reference/get_stylesheet_directory">get_stylesheet_directory</a></tt></li>
<li> <tt><a title="Function Reference/get stylesheet directory uri" href="http://codex.wordpress.org/Function_Reference/get_stylesheet_directory_uri">get_stylesheet_directory_uri</a></tt></li>
<li> <tt><a title="Function Reference/get stylesheet uri" href="http://codex.wordpress.org/Function_Reference/get_stylesheet_uri">get_stylesheet_uri</a></tt></li>
<li> <tt><a title="Function Reference/get template" href="http://codex.wordpress.org/Function_Reference/get_template">get_template</a></tt></li>
<li> <tt><a title="Function Reference/get template directory" href="http://codex.wordpress.org/Function_Reference/get_template_directory">get_template_directory</a></tt></li>
<li> <tt><a title="Function Reference/get template directory uri" href="http://codex.wordpress.org/Function_Reference/get_template_directory_uri">get_template_directory_uri</a></tt></li>
<li> <tt><a title="Function Reference/get theme" href="http://codex.wordpress.org/Function_Reference/get_theme">get_theme</a></tt></li>
<li> <tt><a title="Function Reference/get theme data" href="http://codex.wordpress.org/Function_Reference/get_theme_data">get_theme_data</a></tt></li>
<li> <tt><a title="Function Reference/get theme mod" href="http://codex.wordpress.org/Function_Reference/get_theme_mod">get_theme_mod</a></tt></li>
<li> <tt><a title="Function Reference/get theme root" href="http://codex.wordpress.org/Function_Reference/get_theme_root">get_theme_root</a></tt></li>
<li> <tt><a title="Function Reference/get theme root uri" href="http://codex.wordpress.org/Function_Reference/get_theme_root_uri">get_theme_root_uri</a></tt></li>
<li> <tt><a title="Function Reference/get themes" href="http://codex.wordpress.org/Function_Reference/get_themes">get_themes</a></tt></li>
<li> <tt><a title="Function Reference/header image" href="http://codex.wordpress.org/Function_Reference/header_image">header_image</a></tt></li>
<li> <tt><a title="Function Reference/load template" href="http://codex.wordpress.org/Function_Reference/load_template">load_template</a></tt></li>
<li> <tt><a title="Function Reference/locale stylesheet" href="http://codex.wordpress.org/Function_Reference/locale_stylesheet">locale_stylesheet</a></tt></li>
<li> <tt><a title="Function Reference/preview theme" href="http://codex.wordpress.org/Function_Reference/preview_theme">preview_theme</a></tt></li>
<li> <tt><a title="Function Reference/preview theme ob filter" href="http://codex.wordpress.org/Function_Reference/preview_theme_ob_filter">preview_theme_ob_filter</a></tt></li>
<li> <tt><a title="Function Reference/preview theme ob filter callback" href="http://codex.wordpress.org/Function_Reference/preview_theme_ob_filter_callback">preview_theme_ob_filter_callback</a></tt></li>
<li> <tt><a title="Function Reference/set theme mod" href="http://codex.wordpress.org/Function_Reference/set_theme_mod">set_theme_mod</a></tt></li>
<li> <tt><a title="Function Reference/switch theme" href="http://codex.wordpress.org/Function_Reference/switch_theme">switch_theme</a></tt></li>
<li> <tt><a title="Function Reference/validate current theme" href="http://codex.wordpress.org/Function_Reference/validate_current_theme">validate_current_theme</a></tt></li>
</ul>
</td>
</tr>
</tbody>
</table>
</td>
<td width="50%">
<table class="widefat" border="0">
<tbody>
<tr style="background: rgb(70, 70, 70) none repeat scroll 0% 50%; -moz-background-clip: border; -moz-background-origin: padding; -moz-background-inline-policy: continuous; color: rgb(215, 215, 215);">
<th> <strong>Formatting Functions</strong></th>
</tr>
<tr>
<td>
<ul>
<li> <tt><a title="Function Reference/add magic quotes" href="http://codex.wordpress.org/Function_Reference/add_magic_quotes">add_magic_quotes</a></tt></li>
<li> <tt><a title="Function Reference/addslashes gpc" href="http://codex.wordpress.org/Function_Reference/addslashes_gpc">addslashes_gpc</a></tt></li>
<li> <tt><a title="Function Reference/antispambot" href="http://codex.wordpress.org/Function_Reference/antispambot">antispambot</a></tt></li>
<li> <tt><a title="Function Reference/attribute escape" href="http://codex.wordpress.org/Function_Reference/attribute_escape">attribute_escape</a></tt></li>
<li> <tt><a title="Function Reference/backslashit" href="http://codex.wordpress.org/Function_Reference/backslashit">backslashit</a></tt></li>
<li> <tt><a title="Function Reference/balanceTags" href="http://codex.wordpress.org/Function_Reference/balanceTags">balanceTags</a></tt></li>
<li> <tt><a title="Function Reference/clean pre" href="http://codex.wordpress.org/Function_Reference/clean_pre">clean_pre</a></tt></li>
<li> <tt><a title="Function Reference/clean url" href="http://codex.wordpress.org/Function_Reference/clean_url">clean_url</a></tt></li>
<li> <tt><a title="Function Reference/convert chars" href="http://codex.wordpress.org/Function_Reference/convert_chars">convert_chars</a></tt></li>
<li> <tt><a title="Function Reference/convert smilies" href="http://codex.wordpress.org/Function_Reference/convert_smilies">convert_smilies</a></tt></li>
<li> <tt><a title="Function Reference/ent2ncr" href="http://codex.wordpress.org/Function_Reference/ent2ncr">ent2ncr</a></tt></li>
<li> <tt><a title="Function Reference/force balance tags" href="http://codex.wordpress.org/Function_Reference/force_balance_tags">force_balance_tags</a></tt></li>
<li> <tt><a title="Function Reference/format to edit" href="http://codex.wordpress.org/Function_Reference/format_to_edit">format_to_edit</a></tt></li>
<li> <tt><a title="Function Reference/format to post" href="http://codex.wordpress.org/Function_Reference/format_to_post">format_to_post</a></tt></li>
<li> <tt><a title="Function Reference/funky javascript fix" href="http://codex.wordpress.org/Function_Reference/funky_javascript_fix">funky_javascript_fix</a></tt></li>
<li> <tt><a title="Function Reference/htmlentities2" href="http://codex.wordpress.org/Function_Reference/htmlentities2">htmlentities2</a></tt></li>
<li> <tt><a title="Function Reference/is email" href="http://codex.wordpress.org/Function_Reference/is_email">is_email</a></tt></li>
<li> <tt><a title="Function Reference/js escape" href="http://codex.wordpress.org/Function_Reference/js_escape">js_escape</a></tt></li>
<li> <tt><a title="Function Reference/make clickable" href="http://codex.wordpress.org/Function_Reference/make_clickable">make_clickable</a></tt></li>
<li> <tt><a title="Function Reference/popuplinks" href="http://codex.wordpress.org/Function_Reference/popuplinks">popuplinks</a></tt></li>
<li> <tt><a title="Function Reference/remove accents" href="http://codex.wordpress.org/Function_Reference/remove_accents">remove_accents</a></tt></li>
<li> <tt><a title="Function Reference/sanitize email" href="http://codex.wordpress.org/Function_Reference/sanitize_email">sanitize_email</a></tt></li>
<li> <tt><a title="Function Reference/sanitize file name" href="http://codex.wordpress.org/Function_Reference/sanitize_file_name">sanitize_file_name</a></tt></li>
<li> <tt><a title="Function Reference/sanitize user" href="http://codex.wordpress.org/Function_Reference/sanitize_user">sanitize_user</a></tt></li>
<li> <tt><a title="Function Reference/sanitize title" href="http://codex.wordpress.org/Function_Reference/sanitize_title">sanitize_title</a></tt></li>
<li> <tt><a title="Function Reference/sanitize title with dashes" href="http://codex.wordpress.org/Function_Reference/sanitize_title_with_dashes">sanitize_title_with_dashes</a></tt></li>
<li> <tt><a title="Function Reference/seems utf8" href="http://codex.wordpress.org/Function_Reference/seems_utf8">seems_utf8</a></tt></li>
<li> <tt><a title="Function Reference/stripslashes deep" href="http://codex.wordpress.org/Function_Reference/stripslashes_deep">stripslashes_deep</a></tt></li>
<li> <tt><a title="Function Reference/trailingslashit" href="http://codex.wordpress.org/Function_Reference/trailingslashit">trailingslashit</a></tt></li>
<li> <tt><a title="Function Reference/untrailingslashit" href="http://codex.wordpress.org/Function_Reference/untrailingslashit">untrailingslashit</a></tt></li>
<li> <tt><a title="Function Reference/utf8 uri encode" href="http://codex.wordpress.org/Function_Reference/utf8_uri_encode">utf8_uri_encode</a></tt></li>
<li> <tt><a title="Function Reference/wpautop" href="http://codex.wordpress.org/Function_Reference/wpautop">wpautop</a></tt></li>
<li> <tt><a title="Function Reference/wptexturize" href="http://codex.wordpress.org/Function_Reference/wptexturize">wptexturize</a></tt></li>
<li> <tt><a title="Function Reference/wp filter kses" href="http://codex.wordpress.org/Function_Reference/wp_filter_kses">wp_filter_kses</a></tt></li>
<li> <tt><a title="Function Reference/wp filter post kses" href="http://codex.wordpress.org/Function_Reference/wp_filter_post_kses">wp_filter_post_kses</a></tt></li>
<li> <tt><a title="Function Reference/wp filter nohtml kses" href="http://codex.wordpress.org/Function_Reference/wp_filter_nohtml_kses">wp_filter_nohtml_kses</a></tt></li>
<li> <tt><a title="Function Reference/wp iso descrambler" href="http://codex.wordpress.org/Function_Reference/wp_iso_descrambler">wp_iso_descrambler</a></tt></li>
<li> <tt><a title="Function Reference/wp kses" href="http://codex.wordpress.org/Function_Reference/wp_kses">wp_kses</a></tt></li>
<li> <tt><a title="Function Reference/wp kses array lc" href="http://codex.wordpress.org/Function_Reference/wp_kses_array_lc">wp_kses_array_lc</a></tt></li>
<li> <tt><a title="Function Reference/wp kses attr" href="http://codex.wordpress.org/Function_Reference/wp_kses_attr">wp_kses_attr</a></tt></li>
<li> <tt><a title="Function Reference/wp kses bad protocol" href="http://codex.wordpress.org/Function_Reference/wp_kses_bad_protocol">wp_kses_bad_protocol</a></tt></li>
<li> <tt><a title="Function Reference/wp kses bad protocol once" href="http://codex.wordpress.org/Function_Reference/wp_kses_bad_protocol_once">wp_kses_bad_protocol_once</a></tt></li>
<li> <tt><a title="Function Reference/wp kses bad protocol once2" href="http://codex.wordpress.org/Function_Reference/wp_kses_bad_protocol_once2">wp_kses_bad_protocol_once2</a></tt></li>
<li> <tt><a title="Function Reference/wp kses check attr val" href="http://codex.wordpress.org/Function_Reference/wp_kses_check_attr_val">wp_kses_check_attr_val</a></tt></li>
<li> <tt><a title="Function Reference/wp kses decode entities" href="http://codex.wordpress.org/Function_Reference/wp_kses_decode_entities">wp_kses_decode_entities</a></tt></li>
<li> <tt><a title="Function Reference/wp kses hair" href="http://codex.wordpress.org/Function_Reference/wp_kses_hair">wp_kses_hair</a></tt></li>
<li> <tt><a title="Function Reference/wp kses hook" href="http://codex.wordpress.org/Function_Reference/wp_kses_hook">wp_kses_hook</a></tt></li>
<li> <tt><a title="Function Reference/wp kses html error" href="http://codex.wordpress.org/Function_Reference/wp_kses_html_error">wp_kses_html_error</a></tt></li>
<li> <tt><a title="Function Reference/wp kses js entities" href="http://codex.wordpress.org/Function_Reference/wp_kses_js_entities">wp_kses_js_entities</a></tt></li>
<li> <tt><a title="Function Reference/wp kses no null" href="http://codex.wordpress.org/Function_Reference/wp_kses_no_null">wp_kses_no_null</a></tt></li>
<li> <tt><a title="Function Reference/wp kses normalize entities" href="http://codex.wordpress.org/Function_Reference/wp_kses_normalize_entities">wp_kses_normalize_entities</a></tt></li>
<li> <tt><a title="Function Reference/wp kses normalize entities2" href="http://codex.wordpress.org/Function_Reference/wp_kses_normalize_entities2">wp_kses_normalize_entities2</a></tt></li>
<li> <tt><a title="Function Reference/wp kses split" href="http://codex.wordpress.org/Function_Reference/wp_kses_split">wp_kses_split</a></tt></li>
<li> <tt><a title="Function Reference/wp kses split2" href="http://codex.wordpress.org/Function_Reference/wp_kses_split2">wp_kses_split2</a></tt></li>
<li> <tt><a title="Function Reference/wp kses strip slashes" href="http://codex.wordpress.org/Function_Reference/wp_kses_strip_slashes">wp_kses_stripslashes</a></tt></li>
<li> <tt><a title="Function Reference/wp kses version" href="http://codex.wordpress.org/Function_Reference/wp_kses_version">wp_kses_version</a></tt></li>
<li> <tt><a title="Function Reference/wp make link relative" href="http://codex.wordpress.org/Function_Reference/wp_make_link_relative">wp_make_link_relative</a></tt></li>
<li> <tt><a title="Function Reference/wp rel nofollow" href="http://codex.wordpress.org/Function_Reference/wp_rel_nofollow">wp_rel_nofollow</a></tt></li>
<li> <tt><a title="Function Reference/wp richedit pre" href="http://codex.wordpress.org/Function_Reference/wp_richedit_pre">wp_richedit_pre</a></tt></li>
<li> <tt><a title="Function Reference/wp specialchars" href="http://codex.wordpress.org/Function_Reference/wp_specialchars">wp_specialchars</a></tt></li>
<li> <tt><a title="Function Reference/zeroise" href="http://codex.wordpress.org/Function_Reference/zeroise">zeroise</a></tt></li>
</ul>
</td>
</tr>
</tbody>
</table>
</td>
</tr>
<tr valign="top">
<td width="50%">
<table class="widefat" border="0">
<tbody>
<tr style="background: rgb(70, 70, 70) none repeat scroll 0% 50%; -moz-background-clip: border; -moz-background-origin: padding; -moz-background-inline-policy: continuous; color: rgb(215, 215, 215);">
<th> <strong>Miscellaneous Functions</strong></th>
</tr>
<tr>
<td><strong>Time/Date Functions</strong></p>
<ul>
<li> <tt><a title="Function Reference/current time" href="http://codex.wordpress.org/Function_Reference/current_time">current_time</a></tt></li>
<li> <tt><a title="Function Reference/date i18n" href="http://codex.wordpress.org/Function_Reference/date_i18n">date_i18n</a></tt></li>
<li> <tt><a title="Function Reference/get calendar" href="http://codex.wordpress.org/Function_Reference/get_calendar">get_calendar</a></tt></li>
<li> <tt><a title="Function Reference/get date from gmt" href="http://codex.wordpress.org/Function_Reference/get_date_from_gmt">get_date_from_gmt</a></tt></li>
<li> <tt><a title="Function Reference/get lastpostdate" href="http://codex.wordpress.org/Function_Reference/get_lastpostdate">get_lastpostdate</a></tt></li>
<li> <tt><a title="Function Reference/get lastpostmodified" href="http://codex.wordpress.org/Function_Reference/get_lastpostmodified">get_lastpostmodified</a></tt></li>
<li> <tt><a title="Function Reference/get day link" href="http://codex.wordpress.org/Function_Reference/get_day_link">get_day_link</a></tt></li>
<li> <tt><a title="Function Reference/get gmt from date" href="http://codex.wordpress.org/Function_Reference/get_gmt_from_date">get_gmt_from_date</a></tt></li>
<li> <tt><a title="Function Reference/get month link" href="http://codex.wordpress.org/Function_Reference/get_month_link">get_month_link</a></tt></li>
<li> <tt><a title="Function Reference/get the time" href="http://codex.wordpress.org/Function_Reference/get_the_time">get_the_time</a></tt></li>
<li> <tt><a title="Function Reference/get weekstartend" href="http://codex.wordpress.org/Function_Reference/get_weekstartend">get_weekstartend</a></tt></li>
<li> <tt><a title="Function Reference/get year link" href="http://codex.wordpress.org/Function_Reference/get_year_link">get_year_link</a></tt></li>
<li> <tt><a title="Function Reference/human time diff" href="http://codex.wordpress.org/Function_Reference/human_time_diff">human_time_diff</a></tt></li>
<li> <tt><a title="Function Reference/is new day" href="http://codex.wordpress.org/Function_Reference/is_new_day">is_new_day</a></tt></li>
<li> <tt><a title="Function Reference/iso8601 timezone to offset" href="http://codex.wordpress.org/Function_Reference/iso8601_timezone_to_offset">iso8601_timezone_to_offset</a></tt></li>
<li> <tt><a title="Function Reference/iso8601 to datetime" href="http://codex.wordpress.org/Function_Reference/iso8601_to_datetime">iso8601_to_datetime</a></tt></li>
<li> <tt><a title="Function Reference/mysql2date" href="http://codex.wordpress.org/Function_Reference/mysql2date">mysql2date</a></tt></li>
</ul>
<p><strong>Serialization</strong></p>
<ul>
<li> <tt><a title="Function Reference/is serialized" href="http://codex.wordpress.org/Function_Reference/is_serialized">is_serialized</a></tt></li>
<li> <tt><a title="Function Reference/is serialized string" href="http://codex.wordpress.org/Function_Reference/is_serialized_string">is_serialized_string</a></tt></li>
<li> <tt><a title="Function Reference/maybe serialize" href="http://codex.wordpress.org/Function_Reference/maybe_serialize">maybe_serialize</a></tt></li>
<li> <tt><a title="Function Reference/maybe unserialize" href="http://codex.wordpress.org/Function_Reference/maybe_unserialize">maybe_unserialize</a></tt></li>
</ul>
<p><strong>Options</strong></p>
<ul>
<li> <tt><a title="Function Reference/add option" href="http://codex.wordpress.org/Function_Reference/add_option">add_option</a></tt></li>
<li> <tt><a title="Function Reference/delete option" href="http://codex.wordpress.org/Function_Reference/delete_option">delete_option</a></tt></li>
<li> <tt><a title="Function Reference/form option" href="http://codex.wordpress.org/Function_Reference/form_option">form_option</a></tt></li>
<li> <tt><a title="Function Reference/get alloptions" href="http://codex.wordpress.org/Function_Reference/get_alloptions">get_alloptions</a></tt></li>
<li> <tt><a title="Function Reference/get user option" href="http://codex.wordpress.org/Function_Reference/get_user_option">get_user_option</a></tt></li>
<li> <tt><a title="Function Reference/get option" href="http://codex.wordpress.org/Function_Reference/get_option">get_option</a></tt></li>
<li> <tt><a title="Function Reference/update option" href="http://codex.wordpress.org/Function_Reference/update_option">update_option</a></tt></li>
<li> <tt><a title="Function Reference/update user option" href="http://codex.wordpress.org/Function_Reference/update_user_option">update_user_option</a></tt></li>
</ul>
<p><strong>XMLRPC</strong></p>
<ul>
<li> <tt><a title="Function Reference/xmlrpc getpostcategory" href="http://codex.wordpress.org/Function_Reference/xmlrpc_getpostcategory">xmlrpc_getpostcategory</a></tt></li>
<li> <tt><a title="Function Reference/xmlrpc getposttitle" href="http://codex.wordpress.org/Function_Reference/xmlrpc_getposttitle">xmlrpc_getposttitle</a></tt></li>
<li> <tt><a title="Function Reference/xmlrpc removepostdata" href="http://codex.wordpress.org/Function_Reference/xmlrpc_removepostdata">xmlrpc_removepostdata</a></tt></li>
<li> <tt><a title="Function Reference/user pass ok" href="http://codex.wordpress.org/Function_Reference/user_pass_ok">user_pass_ok</a></tt></li>
</ul>
<p><strong>Localization</strong></p>
<ul>
<li> <tt><a title="Function Reference/ 2" href="http://codex.wordpress.org/Function_Reference/_2">__</a></tt></li>
<li> <tt><a title="Function Reference/ e" href="http://codex.wordpress.org/Function_Reference/_e">_e</a></tt></li>
<li> <tt><a title="Function Reference/ ngettext" href="http://codex.wordpress.org/Function_Reference/_ngettext">_ngettext</a></tt></li>
<li> <tt><a title="Function Reference/get locale" href="http://codex.wordpress.org/Function_Reference/get_locale">get_locale</a></tt></li>
<li> <tt><a title="Function Reference/load default textdomain" href="http://codex.wordpress.org/Function_Reference/load_default_textdomain">load_default_textdomain</a></tt></li>
<li> <tt><a title="Function Reference/load plugin textdomain" href="http://codex.wordpress.org/Function_Reference/load_plugin_textdomain">load_plugin_textdomain</a></tt></li>
<li> <tt><a title="Function Reference/load textdomain" href="http://codex.wordpress.org/Function_Reference/load_textdomain">load_textdomain</a></tt></li>
<li> <tt><a title="Function Reference/load theme textdomain" href="http://codex.wordpress.org/Function_Reference/load_theme_textdomain">load_theme_textdomain</a></tt></li>
</ul>
<p><strong>Cron (Scheduling)</strong></p>
<ul>
<li> <tt><a title="Function Reference/spawn cron" href="http://codex.wordpress.org/Function_Reference/spawn_cron">spawn_cron</a></tt></li>
<li> <tt><a title="Function Reference/wp clear scheduled hook" href="http://codex.wordpress.org/Function_Reference/wp_clear_scheduled_hook">wp_clear_scheduled_hook</a></tt></li>
<li> <tt><a title="Function Reference/wp cron" href="http://codex.wordpress.org/Function_Reference/wp_cron">wp_cron</a></tt></li>
<li> <tt><a title="Function Reference/wp get schedule" href="http://codex.wordpress.org/Function_Reference/wp_get_schedule">wp_get_schedule</a></tt></li>
<li> <tt><a title="Function Reference/wp get schedules" href="http://codex.wordpress.org/Function_Reference/wp_get_schedules">wp_get_schedules</a></tt></li>
<li> <tt><a title="Function Reference/wp next scheduled" href="http://codex.wordpress.org/Function_Reference/wp_next_scheduled">wp_next_scheduled</a></tt></li>
<li> <tt><a title="Function Reference/wp reschedule event" href="http://codex.wordpress.org/Function_Reference/wp_reschedule_event">wp_reschedule_event</a></tt></li>
<li> <tt><a title="Function Reference/wp schedule event" href="http://codex.wordpress.org/Function_Reference/wp_schedule_event">wp_schedule_event</a></tt></li>
<li> <tt><a title="Function Reference/wp schedule single event" href="http://codex.wordpress.org/Function_Reference/wp_schedule_single_event">wp_schedule_single_event</a></tt></li>
<li> <tt><a title="Function Reference/wp unschedule event" href="http://codex.wordpress.org/Function_Reference/wp_unschedule_event">wp_unschedule_event</a></tt></li>
</ul>
<p><strong>Miscellaneous</strong></p>
<ul>
<li> <tt><a title="Function Reference/add query arg" href="http://codex.wordpress.org/Function_Reference/add_query_arg">add_query_arg</a></tt></li>
<li> <tt><a title="Function Reference/bool from yn" href="http://codex.wordpress.org/Function_Reference/bool_from_yn">bool_from_yn</a></tt></li>
<li> <tt><a title="Function Reference/cache javascript headers" href="http://codex.wordpress.org/Function_Reference/cache_javascript_headers">cache_javascript_headers</a></tt></li>
<li> <tt><a title="Function Reference/check admin referer" href="http://codex.wordpress.org/Function_Reference/check_admin_referer">check_admin_referer</a></tt></li>
<li> <tt><a title="Function Reference/check ajax referer" href="http://codex.wordpress.org/Function_Reference/check_ajax_referer">check_ajax_referer</a></tt></li>
<li> <tt><a title="Function Reference/do robots" href="http://codex.wordpress.org/Function_Reference/do_robots">do_robots</a></tt></li>
<li> <tt><a title="Function Reference/get bloginfo" href="http://codex.wordpress.org/Function_Reference/get_bloginfo">get_bloginfo</a></tt></li>
<li> <tt><a title="Function Reference/get num queries" href="http://codex.wordpress.org/Function_Reference/get_num_queries">get_num_queries</a></tt></li>
<li> <tt><a title="Function Reference/is blog installed" href="http://codex.wordpress.org/Function_Reference/is_blog_installed">is_blog_installed</a></tt></li>
<li> <tt><a title="Function Reference/make url footnote" href="http://codex.wordpress.org/Function_Reference/make_url_footnote">make_url_footnote</a></tt></li>
<li> <tt><a title="Function Reference/nocache headers" href="http://codex.wordpress.org/Function_Reference/nocache_headers">nocache_headers</a></tt></li>
<li> <tt><a title="Function Reference/remove query arg" href="http://codex.wordpress.org/Function_Reference/remove_query_arg">remove_query_arg</a></tt></li>
<li> <tt><a title="Function Reference/status header" href="http://codex.wordpress.org/Function_Reference/status_header">status_header</a></tt></li>
<li> <tt><a title="Function Reference/wp" href="http://codex.wordpress.org/Function_Reference/wp">wp</a></tt></li>
<li> <tt><a title="Function Reference/wp check filetype" href="http://codex.wordpress.org/Function_Reference/wp_check_filetype">wp_check_filetype</a></tt></li>
<li> <tt><a title="Function Reference/wp clearcookie" href="http://codex.wordpress.org/Function_Reference/wp_clearcookie">wp_clearcookie</a></tt></li>
<li> <tt><a title="Function Reference/wp create nonce" href="http://codex.wordpress.org/Function_Reference/wp_create_nonce">wp_create_nonce</a></tt></li>
<li> <tt><a title="Function Reference/wp die" href="http://codex.wordpress.org/Function_Reference/wp_die">wp_die</a></tt></li>
<li> <tt><a title="Function Reference/wp explain nonce" href="http://codex.wordpress.org/Function_Reference/wp_explain_nonce">wp_explain_nonce</a></tt></li>
<li> <tt><a title="Function Reference/wp get cookie login" href="http://codex.wordpress.org/Function_Reference/wp_get_cookie_login">wp_get_cookie_login</a></tt></li>
<li> <tt><a title="Function Reference/wp get http headers" href="http://codex.wordpress.org/Function_Reference/wp_get_http_headers">wp_get_http_headers</a></tt></li>
<li> <tt><a title="Function Reference/wp get original referer" href="http://codex.wordpress.org/Function_Reference/wp_get_original_referer">wp_get_original_referer</a></tt></li>
<li> <tt><a title="Function Reference/wp get referer" href="http://codex.wordpress.org/Function_Reference/wp_get_referer">wp_get_referer</a></tt></li>
<li> <tt><a title="Function Reference/wp hash" href="http://codex.wordpress.org/Function_Reference/wp_hash">wp_hash</a></tt></li>
<li> <tt><a title="Function Reference/wp mail" href="http://codex.wordpress.org/Function_Reference/wp_mail">wp_mail</a></tt></li>
<li> <tt><a title="Function Reference/wp mkdir p" href="http://codex.wordpress.org/Function_Reference/wp_mkdir_p">wp_mkdir_p</a></tt></li>
<li> <tt><a title="Function Reference/wp new user notification" href="http://codex.wordpress.org/Function_Reference/wp_new_user_notification">wp_new_user_notification</a></tt></li>
<li> <tt><a title="Function Reference/wp nonce ays" href="http://codex.wordpress.org/Function_Reference/wp_nonce_ays">wp_nonce_ays</a></tt></li>
<li> <tt><a title="Function Reference/wp nonce field" href="http://codex.wordpress.org/Function_Reference/wp_nonce_field">wp_nonce_field</a></tt></li>
<li> <tt><a title="Function Reference/wp nonce url" href="http://codex.wordpress.org/Function_Reference/wp_nonce_url">wp_nonce_url</a></tt></li>
<li> <tt><a title="Function Reference/wp notify moderator" href="http://codex.wordpress.org/Function_Reference/wp_notify_moderator">wp_notify_moderator</a></tt></li>
<li> <tt><a title="Function Reference/wp notify postauthor" href="http://codex.wordpress.org/Function_Reference/wp_notify_postauthor">wp_notify_postauthor</a></tt></li>
<li> <tt><a title="Function Reference/wp original referer field" href="http://codex.wordpress.org/Function_Reference/wp_original_referer_field">wp_original_referer_field</a></tt></li>
<li> <tt><a title="Function Reference/wp redirect" href="http://codex.wordpress.org/Function_Reference/wp_redirect">wp_redirect</a></tt></li>
<li> <tt><a title="Function Reference/wp referer field" href="http://codex.wordpress.org/Function_Reference/wp_referer_field">wp_referer_field</a></tt></li>
<li> <tt><a title="Function Reference/wp remote fopen" href="http://codex.wordpress.org/Function_Reference/wp_remote_fopen">wp_remote_fopen</a></tt></li>
<li> <tt><a title="Function Reference/wp salt" href="http://codex.wordpress.org/Function_Reference/wp_salt">wp_salt</a></tt></li>
<li> <tt><a title="Function Reference/wp setcookie" href="http://codex.wordpress.org/Function_Reference/wp_setcookie">wp_setcookie</a></tt></li>
<li> <tt><a title="Function Reference/wp upload bits" href="http://codex.wordpress.org/Function_Reference/wp_upload_bits">wp_upload_bits</a></tt></li>
<li> <tt><a title="Function Reference/wp upload dir" href="http://codex.wordpress.org/Function_Reference/wp_upload_dir">wp_upload_dir</a></tt></li>
<li> <tt><a title="Function Reference/wp verify nonce" href="http://codex.wordpress.org/Function_Reference/wp_verify_nonce">wp_verify_nonce</a></tt></li>
</ul>
</td>
</tr>
</tbody>
</table>
</td>
<td width="50%">
<table class="widefat" border="0">
<tbody>
<tr style="background: rgb(70, 70, 70) none repeat scroll 0% 50%; -moz-background-clip: border; -moz-background-origin: padding; -moz-background-inline-policy: continuous; color: rgb(215, 215, 215);">
<th> <strong>Classes</strong></th>
</tr>
<tr>
<td>The following classes were created by WordPress developers, and are found in files <tt>capabilities.php</tt>, <tt>classes.php</tt>, <tt>class-snoopy.php</tt>, <tt>locale.php</tt>, <tt>query.php</tt>, <tt>rewrite.php</tt>, <tt>script-loader.php</tt>, <tt>wp-db.php</tt>:</p>
<ul>
<li> WP – general request handling</li>
<li> <tt>WP_Ajax_Response</tt> – AJAX handling</li>
<li> <tt><a title="Function Reference/WP Cache" href="http://codex.wordpress.org/Function_Reference/WP_Cache">WP_Object_Cache</a></tt> (formerly <tt>WP_Cache</tt>) – Object cache (and functions <tt>wp_cache_add, wp_cache_close, wp_cache_delete, wp_cache_flush, wp_cache_get, wp_cache_init, wp_cache_replace, wp_cache_set</tt>)</li>
<li> WP_Error – error handling (and function <tt>is_wp_error</tt>)</li>
<li> <tt>WP_Locale</tt> – handles date and time locales</li>
<li> <tt><a title="Function Reference/WP Query" href="http://codex.wordpress.org/Function_Reference/WP_Query">WP_Query</a></tt> – Request parsing and manipulation, posts fetching (with functions <tt>get_query_var, <a title="Template Tags/query posts" href="http://codex.wordpress.org/Template_Tags/query_posts">query_posts</a>, have_posts, in_the_loop, rewind_posts, the_post, wp_old_slug_redirect, setup_postdata</tt>, as well as the <a title="Conditional Tags" href="http://codex.wordpress.org/Conditional_Tags">Conditional Tags</a> <tt>is_*</tt>)</li>
<li> <tt><a title="Function Reference/WP Rewrite" href="http://codex.wordpress.org/Function_Reference/WP_Rewrite">WP_Rewrite</a></tt> – Rewrite rules (and functions <tt>add_rewrite_rule, add_rewrite_tag, add_feed, add_rewrite_endpoint, url_to_postid</tt>)</li>
<li> WP_Roles, WP_Role, WP_User – <a title="Roles and Capabilities" href="http://codex.wordpress.org/Roles_and_Capabilities">Users and capabilities</a> – <tt>map_meta_cap, current_user_can, get_role, add_role, remove_role</tt></li>
<li> <tt>WP_Scripts</tt> – JavaScript loading (and functions <tt>wp_print_scripts, wp_register_script, wp_deregister_script <a title="Function Reference/wp enqueue script" href="http://codex.wordpress.org/Function_Reference/wp_enqueue_script">wp_enqueue_script</a></tt>)</li>
<li> <tt>WP_Styles</tt> – CSS stylesheet loading (and functions <tt> wp_print_styles, wp_register_style, wp_deregister_style, <a title="Function Reference/wp enqueue style" href="http://codex.wordpress.org/Function_Reference/wp_enqueue_style">wp_enqueue_style</a> </tt>)</li>
<li> Display tree-like data – <tt><a title="Function Reference/Walker Class" href="http://codex.wordpress.org/Function_Reference/Walker_Class">Walker</a>, Walker_Page, Walker_PageDropdown, Walker_Category, Walker_CategoryDropdown</tt></li>
<li> <tt><a title="Function Reference/wpdb Class" href="http://codex.wordpress.org/Function_Reference/wpdb_Class">wpdb</a></tt> – Database interface</li>
</ul>
<p>The following classes were created by outside developers, and are found in files <tt>class-IXR.php</tt>, <tt>class-pop3.php</tt>, <tt>class-snoopy.php</tt>, <tt>gettext.php</tt>, <tt>rss.php</tt>, <tt>streams.php</tt>:</p>
<ul>
<li> <a class="external text" title="http://scripts.incutio.com/xmlrpc/" href="http://scripts.incutio.com/xmlrpc/">IXR</a> – XML-RPC Classes, including <tt>IXR_Value, IXR_Message, IXR_Server, IXR_IntrospectionServer, IXR_Request, IXR_Client, IXR_ClientMulticall, IXR_Error, IXR_Date, IXR_Base64</tt></li>
<li> <a class="external text" title="http://sourceforge.net/projects/snoopy/" href="http://sourceforge.net/projects/snoopy/">Snoopy</a> – HTTP client</li>
<li> <tt>gettext_reader</tt> (part of <a class="external text" title="http://savannah.nongnu.org/projects/php-gettext/" href="http://savannah.nongnu.org/projects/php-gettext/">PHP-gettext</a>) – Localization Class</li>
<li> <a class="external text" title="http://magpierss.sourceforge.net/" href="http://magpierss.sourceforge.net/">RSS Classes (MagpieRSS and RSSCache)</a> (and functions <tt>fetch_rss, is_info, is_success, is_redirect, is_error, is_client_error, is_server_error, parse_w3cdtf, wp_rss, get_rss</tt>)</li>
<li> <tt>POP3</tt>: SquirrelMail wrapper</li>
<li> <tt>StreamReader, StringReader, FileReader, CachedFileReader</tt></li>
</ul>
</td>
</tr>
</tbody>
</table>
</td>
</tr>
</tbody>
</table>
]]></content:encoded>
			<wfw:commentRss>http://www.3code.cn/wordpress-functions/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>php数组与字符串互换</title>
		<link>http://www.3code.cn/php-implode-explode/</link>
		<comments>http://www.3code.cn/php-implode-explode/#comments</comments>
		<pubDate>Mon, 14 Jun 2010 08:04:54 +0000</pubDate>
		<dc:creator>寒林</dc:creator>
				<category><![CDATA[PHP]]></category>
		<category><![CDATA[PHP 函数]]></category>

		<guid isPermaLink="false">http://www.3code.cn/?p=1666</guid>
		<description><![CDATA[函数:implode()
--------------------------------------------------------------------------------
字符串处理函数库

implode
将数组变成字符串。

语法: string implode(string glue, array pieces);

返回值: 字符串

函数种类: 资料处理]]></description>
			<content:encoded><![CDATA[<p>函数:implode()<br />
--------------------------------------------------------------------------------<br />
字符串处理函数库</p>
<p>implode<br />
将数组变成字符串。</p>
<p>语法: string implode(string glue, array pieces);</p>
<p>返回值: 字符串</p>
<p>函数种类: 资料处理<br />
--------------------------------------------------------------------------------<br />
内容说明</p>
<p>本函数将数组的内容组合成一个字符串，参数 glue 是字之间的分隔符号。<br />
使用范例</p>
<p>&lt;?<br />
$colon_separated = implode(":", $array);<br />
echo $colon_separated;<br />
?&gt;</p>
<p>参考<br />
explode()  join()  split()<br />
--------------------------------------------------------------------------------<br />
函数:explode()<br />
--------------------------------------------------------------------------------</p>
<p>字符串处理函数库</p>
<p>explode<br />
切开字符串。</p>
<p>语法: array explode(string separator, string string);</p>
<p>返回值: 数组</p>
<p>函数种类: 资料处理</p>
<p>--------------------------------------------------------------------------------</p>
<p>内容说明</p>
<p>本函数将字符串依指定的字符串或字符 separator 切开。将切开后的字符串返回到数组变量中。</p>
<p>--------------------------------------------------------------------------------</p>
<p>使用范例</p>
<p>&lt;?<br />
$pizza = "第一片 第二片 第三片 第四片 第五片 第六片";<br />
$pieces = explode(" ", $pizza);<br />
?&gt;</p>
<p>参考<br />
implode()</p>
<p>--------------------------------------------------------------------------------<br />
函数:split()<br />
--------------------------------------------------------------------------------<br />
正则表达式函数库<br />
split<br />
将字符串依指定的规则切开。</p>
<p>语法: array split(string pattern, string string, int [limit]);</p>
<p>返回值: 数组</p>
<p>函数种类: 资料处理</p>
<p>内容说明<br />
本函数可将字符串依指定的规则分开。切开后的返回值为数组变量。参数 pattern 为指定的规则字符串、参数 string 则为待处理的字符串、参数 limit 可省略，表示欲处理的最多合乎值。值得注意的是本函数的 pattern 参数有区分大小写。</p>
]]></content:encoded>
			<wfw:commentRss>http://www.3code.cn/php-implode-explode/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>php字符串操作函数分析与举例</title>
		<link>http://www.3code.cn/php-str-functions/</link>
		<comments>http://www.3code.cn/php-str-functions/#comments</comments>
		<pubDate>Thu, 08 Apr 2010 10:36:29 +0000</pubDate>
		<dc:creator>寒林</dc:creator>
				<category><![CDATA[PHP]]></category>
		<category><![CDATA[PHP 函数]]></category>

		<guid isPermaLink="false">http://www.3code.cn/?p=1612</guid>
		<description><![CDATA[php字符串操作函数分析与举例, 两个以上的字符串连接用"."操作符，依字符串的顺序形成新的字符串。 这里用到了初始化，是因为未定义变量在使用时会产生一个notice错误，""或者null可以简单地代表空字符串。]]></description>
			<content:encoded><![CDATA[<p><strong>连接</strong><br />
两个以上的字符串连接用"."操作符，依字符串的顺序形成新的字符串。<br />
$str = "i " . "love " . "iwind";<br />
这里的$str 就是 "i love iwind";字符串。当然，还可以使用 .= 操作符:<br />
$str = ""; // 初始化<br />
$str .= "i love iwind";</p>
<p>这里用到了初始化，是因为未定义变量在使用时会产生一个notice错误，""或者null可以简单地代表空字符串。</p>
<p><strong>长度</strong><br />
PHP提供strlen函数来计算字符串的长度:<br />
$str = "test";<br />
echo strlen($str); // 将输出 4<br />
有点奇怪的是strlen将中日等汉字以及全角字符都当作两个或四个长度计算。好在mbstring或icon两个函数可以帮助解决这个问题，比如:<br />
$len = iconv_strlen($str, "GBK");<br />
$len = mb_strlen($str, "GBK");<br />
注:mbstring模块提供了大量的对含有多字节字符的字符串的处理函数，推荐多加应用，由于这篇文章讲的是字符串入门，所以不打算详细解说。</p>
<p><strong>分隔与连接</strong><br />
PHP允许你把一个字符串按照一个分隔符进行分隔成一个数组，或者将一个数组组合成一个字符串。看下面的例子：<br />
$str = "i love iwind";<br />
$array = explode(" ", $str);<br />
上面的explode函数，就把$str字符串按空格字符进行分隔，结果返回一个数组 $array:array("i", "love", "iwind").与explode函数有类似功能的有：preg_split(), spliti(), split()等函数。</p>
<p>与此相反的，implode和join则能把一个数组结合成一个字符串，他们是具有完全相同功能的函数。<br />
$array = array("i", "love", "iwind");<br />
$str = implode(" ", $array);<br />
例中的implode函数将数组$array的每个元素用空格字符进行连接，返回一个字符串 $str： "i love iwind".<br />
<strong><br />
裁剪</strong><br />
一个字符串首和尾，可能不是你想要的部分，就可以用trim,rtrim,ltrim等函数,分别去除一个字符串两端空格，一个字符串尾部空格，一个字符串首部空格。<br />
echo trim(" i love iwind "); // 将得到 "i love iwind"<br />
echo rtrim(" i love iwind "); // 将得到 " i love iwind"<br />
echo ltrim(" i love iwind "); // 将得到 "i love iwind "<br />
其实这三个参数不仅可以去除字符串首尾的空格，还可以去除它们的第二个参数指定的字符，如:<br />
echo trim(",1,2,3,4,", ","); // 将得到 1,2,3,4 两端的","号被裁掉了。</p>
<p>有时还会看到有人使用chop这个函数，其实它是rtrim的同义函数。</p>
]]></content:encoded>
			<wfw:commentRss>http://www.3code.cn/php-str-functions/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>php身份证方面相关函数</title>
		<link>http://www.3code.cn/php-sfz/</link>
		<comments>http://www.3code.cn/php-sfz/#comments</comments>
		<pubDate>Mon, 14 Dec 2009 02:16:09 +0000</pubDate>
		<dc:creator>寒林</dc:creator>
				<category><![CDATA[PHP]]></category>
		<category><![CDATA[PHP 函数]]></category>

		<guid isPermaLink="false">http://www.3code.cn/?p=1289</guid>
		<description><![CDATA[几个身份证方面的函数，个人感觉挺有用的，特别是在网络问卷调查时，对个人信息里的身份证进行验证很有用:

// 计算身份证校验码，根据国家标准GB 11643-1999
function idcard_verify_number($idcard_base){
if (strlen($idcard_base) != 17){ return false; } ]]></description>
			<content:encoded><![CDATA[<p>几个身份证方面的函数，个人感觉挺有用的，特别是在网络问卷调查时，对个人信息里的身份证进行验证很有用:</p>
<p>// 计算身份证校验码，根据国家标准GB 11643-1999<br />
function idcard_verify_number($idcard_base){<br />
if (strlen($idcard_base) != 17){ return false; }</p>
<p>// 加权因子<br />
$factor = array(7, 9, 10, 5, 8, 4, 2, 1, 6, 3, 7, 9, 10, 5, 8, 4, 2);</p>
<p>// 校验码对应值<br />
$verify_number_list = array('1', '0', 'X', '9', '8', '7', '6', '5', '4', '3', '2');</p>
<p>$checksum = 0;<br />
for ($i = 0; $i &lt; strlen($idcard_base); $i++){<br />
$checksum += substr($idcard_base, $i, 1) * $factor[$i];<br />
}</p>
<p>$mod = $checksum % 11;<br />
$verify_number = $verify_number_list[$mod];</p>
<p>return $verify_number;</p>
<p>}</p>
<p>// 将15位身份证升级到18位<br />
function idcard_15to18($idcard){<br />
if (strlen($idcard) != 15){<br />
return false;<br />
}else{<br />
// 如果身份证顺序码是996 997 998 999，这些是为百岁以上老人的特殊编码<br />
if (array_search(substr($idcard, 12, 3), array('996', '997', '998', '999')) !== false){<br />
$idcard = substr($idcard, 0, 6) . '18'. substr($idcard, 6, 9);<br />
}else{<br />
$idcard = substr($idcard, 0, 6) . '19'. substr($idcard, 6, 9);<br />
}<br />
}</p>
<p>$idcard = $idcard . idcard_verify_number($idcard);</p>
<p>return $idcard;<br />
}</p>
<p>// 18位身份证校验码有效性检查<br />
function idcard_checksum18($idcard){<br />
if (strlen($idcard) != 18){ return false; }<br />
$idcard_base = substr($idcard, 0, 17);</p>
<p>if (idcard_verify_number($idcard_base) != strtoupper(substr($idcard, 17, 1))){<br />
return false;<br />
}else{<br />
return true;<br />
}<br />
}<br />
?&gt;</p>
<p>其中的$idcard_base是指身份证中的本位码，本位码是18位身份证里才有的，也就是18位身份证的前17位，最后一位称为校验码<br />
一般在使用的时候不用直接调用idcard_verify_number()，平时的应用大多是使用后两个函数<br />
这些函数都没有关心身份证字符串的格式问题，在调用前自行进行格式检查58123</p>
]]></content:encoded>
			<wfw:commentRss>http://www.3code.cn/php-sfz/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>PHP字符串nl2br()函数</title>
		<link>http://www.3code.cn/php-nl2br/</link>
		<comments>http://www.3code.cn/php-nl2br/#comments</comments>
		<pubDate>Sat, 12 Dec 2009 21:02:05 +0000</pubDate>
		<dc:creator>寒林</dc:creator>
				<category><![CDATA[PHP]]></category>
		<category><![CDATA[PHP 函数]]></category>
		<category><![CDATA[PHP字符串操作]]></category>

		<guid isPermaLink="false">http://www.3code.cn/?p=1281</guid>
		<description><![CDATA[nl2br()函数在字符串中的每个新行 (\n) 之前插入HTML 换行符 (br /)。 语法 nl2br(string) 参数 描述 string 必需。规定要检查的字符串。 例子 ?php//一行输出echo (foo isn't\n bar);echo br;//将\n替换成br /则两行输出echo nl2br(foo isn't\]]></description>
			<content:encoded><![CDATA[<p><strong>定义与用法</strong><br />
nl2br() 函数在字符串中的每个新行 (\n) 之前插入 HTML 换行符 (&lt;br /&gt;)。</p>
<p><strong>语法</strong><br />
nl2br(string)</p>
<p><strong>参数     描述</strong><br />
string     必需。规定要检查的字符串。</p>
<p><strong>例子</strong><br />
&lt;?php<br />
//一行输出<br />
echo ("foo isn't\n bar");<br />
echo "&lt;br&gt;";<br />
//将\n替换成&lt;br /&gt;则两行输出<br />
echo nl2br("foo isn't\n bar");<br />
?&gt;</p>
<p><strong>输出：</strong></p>
<p>foo isn't bar<br />
foo isn't<br />
bar</p>
]]></content:encoded>
			<wfw:commentRss>http://www.3code.cn/php-nl2br/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>php MySQL使用rand函数随机取记录</title>
		<link>http://www.3code.cn/php-mysql-rand/</link>
		<comments>http://www.3code.cn/php-mysql-rand/#comments</comments>
		<pubDate>Wed, 09 Dec 2009 10:20:47 +0000</pubDate>
		<dc:creator>寒林</dc:creator>
				<category><![CDATA[PHP]]></category>
		<category><![CDATA[PHP 函数]]></category>
		<category><![CDATA[PHP数据库操作]]></category>

		<guid isPermaLink="false">http://www.3code.cn/?p=1241</guid>
		<description><![CDATA[如何在mysql中使用随机数, 如何写一个语句能一下更新几百条MYSQL数据！
需要测试MYSQL数据库，里面有一个上万条数据的数据库，如何写一个PHP文件一下每次更新几百条信息，我都是写一个循环一次更新一条信息，这样我知道用WHILE写就可以了，要是一次更新好比100条数据改如何写呢！]]></description>
			<content:encoded><![CDATA[<p><strong>php MySQL使用rand函数随机取记录</strong></p>
<p>如何在mysql中使用随机数, 如何写一个语句能一下更新几百条MYSQL数据！<br />
需要测试MYSQL数据库，里面有一个上万条数据的数据库，如何写一个PHP文件一下每次更新几百条信息，我都是写一个循环一次更新一条信息，这样我知道用WHILE写就可以了，要是一次更新好比100条数据改如何写呢！</p>
<p>正确答案是：UPDATE cdb_posts SET views = rand();<br />
顺便给你找了点关于mysql rand函数的实例，如下：<br />
那就在insert 命令中，value()里面用rand()，注意字段宽度是否够一直以为mysql随机查询几条数据，就用<br />
SELECT * FROM `table` ORDER BY RAND() LIMIT 5</p>
<p>就可以了。<br />
但是真正测试一下才发现这样效率非常低。一个15万余条的库，查询5条数据，居然要8秒以上<br />
查看官方手册，也说rand()放在ORDER BY 子句中会被执行多次，自然效率及很低。<br />
You cannot use a column with RAND() values in an ORDER BY clause, because ORDER BY would evaluate the column multiple times.</p>
<p>搜索Google，网上基本上都是查询max(id) * rand()来随机获取数据。<br />
SELECT *<br />
FROM `table` AS t1 JOIN (SELECT ROUND(RAND() * (SELECT MAX(id) FROM `table`)) AS id) AS t2<br />
WHERE t1.id &gt;= t2.id<br />
ORDER BY t1.id ASC LIMIT 5;</p>
<p>但是这样会产生连续的5条记录。解决办法只能是每次查询一条，查询5次。即便如此也值得，因为15万条的表，查询只需要0.01秒不到。<br />
上面的语句采用的是JOIN，mysql的论坛上有人使用<br />
SELECT *<br />
FROM `table`<br />
WHERE id &gt;= (SELECT FLOOR( MAX(id) * RAND()) FROM `table` )<br />
ORDER BY id LIMIT 1;</p>
<p>我测试了一下，需要0.5秒，速度也不错，但是跟上面的语句还是有很大差距。总觉有什么地方不正常。<br />
于是我把语句改写了一下。<br />
SELECT * FROM `table`<br />
WHERE id &gt;= (SELECT floor(RAND() * (SELECT MAX(id) FROM `table`)))<br />
ORDER BY id LIMIT 1;</p>
<p>这下，效率又提高了，查询时间只有0.01秒<br />
最后，再把语句完善一下，加上MIN(id)的判断。我在最开始测试的时候，就是因为没有加上MIN(id)的判断，结果有一半的时间总是查询到表中的前面几行。<br />
完整查询语句是：<br />
SELECT * FROM `table`<br />
WHERE id &gt;= (SELECT floor( RAND() * ((SELECT MAX(id) FROM `table`)-(SELECT MIN(id) FROM `table`)) + (SELECT MIN(id) FROM `table`)))<br />
ORDER BY id LIMIT 1;</p>
<p>SELECT *<br />
FROM `table` AS t1 JOIN (SELECT ROUND(RAND() * ((SELECT MAX(id) FROM `table`)-(SELECT MIN(id) FROM `table`))+(SELECT MIN(id) FROM `table`)) AS id) AS t2<br />
WHERE t1.id &gt;= t2.id<br />
ORDER BY t1.id LIMIT 1;</p>
<p>最后在php中对这两个语句进行分别查询10次，<br />
前者花费时间 0.147433 秒<br />
后者花费时间 0.015130 秒<br />
看来采用JOIN的语法比直接在WHERE中使用函数效率还要高很多。</p>
<p>原文地址 http://www.phpq.net/viewnews-69.html</p>
]]></content:encoded>
			<wfw:commentRss>http://www.3code.cn/php-mysql-rand/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>php获取访问者操作系统的函数</title>
		<link>http://www.3code.cn/php-system/</link>
		<comments>http://www.3code.cn/php-system/#comments</comments>
		<pubDate>Wed, 09 Dec 2009 10:11:12 +0000</pubDate>
		<dc:creator>寒林</dc:creator>
				<category><![CDATA[PHP]]></category>
		<category><![CDATA[PHP 函数]]></category>

		<guid isPermaLink="false">http://www.3code.cn/?p=1234</guid>
		<description><![CDATA[function osinfo() {
$os="";
$Agent = $GLOBALS["HTTP_USER_AGENT"];
if (eregi('win',$Agent) &#038;& strpos($Agent, '95')) {
$os="Windows 95";
}]]></description>
			<content:encoded><![CDATA[<p><strong>php获取访问者操作系统</strong></p>
<p>function osinfo() {<br />
$os="";<br />
$Agent = $GLOBALS["HTTP_USER_AGENT"];<br />
if (eregi('win',$Agent) &amp;&amp; strpos($Agent, '95')) {<br />
$os="Windows 95";<br />
}<br />
elseif (eregi('win 9x',$Agent) &amp;&amp; strpos($Agent, '4.90')) {<br />
$os="Windows ME";<br />
}<br />
elseif (eregi('win',$Agent) &amp;&amp; ereg('98',$Agent)) {<br />
$os="Windows 98";<br />
}<br />
elseif (eregi('win',$Agent) &amp;&amp; eregi('nt 5\.0',$Agent)) {<br />
$os="Windows 2000";<br />
}<br />
elseif (eregi('win',$Agent) &amp;&amp; eregi('nt',$Agent)) {<br />
$os="Windows NT";<br />
}<br />
elseif (eregi('win',$Agent) &amp;&amp; eregi('nt 5\.1',$Agent)) {<br />
$os="Windows XP";<br />
}<br />
elseif (eregi('win',$Agent) &amp;&amp; ereg('32',$Agent)) {<br />
$os="Windows 32";<br />
}<br />
elseif (eregi('linux',$Agent)) {<br />
$os="Linux";<br />
}<br />
elseif (eregi('unix',$Agent)) {<br />
$os="Unix";<br />
}<br />
elseif (eregi('sun',$Agent) &amp;&amp; eregi('os',$Agent)) {<br />
$os="SunOS";<br />
}<br />
elseif (eregi('ibm',$Agent) &amp;&amp; eregi('os',$Agent)) {<br />
$os="IBM OS/2";<br />
}<br />
elseif (eregi('Mac',$Agent) &amp;&amp; eregi('PC',$Agent)) {<br />
$os="Macintosh";<br />
}<br />
elseif (eregi('PowerPC',$Agent)) {<br />
$os="PowerPC";<br />
}<br />
elseif (eregi('AIX',$Agent)) {<br />
$os="AIX";<br />
}<br />
elseif (eregi('HPUX',$Agent)) {<br />
$os="HPUX";<br />
}<br />
elseif (eregi('NetBSD',$Agent)) {<br />
$os="NetBSD";<br />
}<br />
elseif (eregi('BSD',$Agent)) {<br />
$os="BSD";<br />
}<br />
elseif (ereg('OSF1',$Agent)) {<br />
$os="OSF1";<br />
}<br />
elseif (ereg('IRIX',$Agent)) {<br />
$os="IRIX";<br />
}<br />
elseif (eregi('FreeBSD',$Agent)) {<br />
$os="FreeBSD";<br />
}<br />
if ($os=='') $os = "Unknown";<br />
return $os;<br />
}<br />
//调用方法$os=os_infor() ;</p>
]]></content:encoded>
			<wfw:commentRss>http://www.3code.cn/php-system/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>PHP 获取访问者浏览器的函数</title>
		<link>http://www.3code.cn/php-ie-firfox-2/</link>
		<comments>http://www.3code.cn/php-ie-firfox-2/#comments</comments>
		<pubDate>Wed, 09 Dec 2009 10:09:29 +0000</pubDate>
		<dc:creator>寒林</dc:creator>
				<category><![CDATA[PHP]]></category>
		<category><![CDATA[PHP 函数]]></category>

		<guid isPermaLink="false">http://www.3code.cn/?p=1232</guid>
		<description><![CDATA[function browse_infor()
{
$browser="";$browserver="";
$Browsers =array("Lynx","MOSAIC","AOL","Opera","JAVA","MacWeb","WebExplorer","OmniWeb");
$Agent = $GLOBALS["HTTP_USER_AGENT"];
for ($i=0; $i<=7; $i )]]></description>
			<content:encoded><![CDATA[<p><strong>PHP获取访问者浏览器</strong><br />
function browse_infor()<br />
{<br />
$browser="";$browserver="";<br />
$Browsers =array("Lynx","MOSAIC","AOL","Opera","JAVA","MacWeb","WebExplorer","OmniWeb");<br />
$Agent = $GLOBALS["HTTP_USER_AGENT"];<br />
for ($i=0; $i&lt;=7; $i )<br />
{<br />
if (strpos($Agent,$Browsers[$i]))<br />
{<br />
$browser = $Browsers[$i];<br />
$browserver ="";<br />
}<br />
}<br />
if (ereg("Mozilla",$Agent) &amp;&amp; !ereg("MSIE",$Agent))<br />
{<br />
$temp =explode("(", $Agent); $Part=$temp[0];<br />
$temp =explode("/", $Part); $browserver=$temp[1];<br />
$temp =explode(" ",$browserver); $browserver=$temp[0];<br />
$browserver =preg_replace("/([\d\.] )/","\1",$browserver);<br />
$browserver = " $browserver";<br />
$browser = "Netscape Navigator";<br />
}<br />
if (ereg("Mozilla",$Agent) &amp;&amp; ereg("Opera",$Agent))<br />
{<br />
$temp =explode("(", $Agent); $Part=$temp[1];<br />
$temp =explode(")", $Part); $browserver=$temp[1];<br />
$temp =explode(" ",$browserver);$browserver=$temp[2];<br />
$browserver =preg_replace("/([\d\.] )/","\1",$browserver);<br />
$browserver = " $browserver";<br />
$browser = "Opera";<br />
}<br />
if (ereg("Mozilla",$Agent) &amp;&amp; ereg("MSIE",$Agent))<br />
{<br />
$temp = explode("(", $Agent); $Part=$temp[1];<br />
$temp = explode(";",$Part); $Part=$temp[1];<br />
$temp = explode(" ",$Part);$browserver=$temp[2];<br />
$browserver =preg_replace("/([\d\.] )/","\1",$browserver);<br />
$browserver = " $browserver";<br />
$browser = "Internet Explorer";<br />
}<br />
if ($browser!="")<br />
{<br />
$browseinfo = "$browser$browserver";<br />
}<br />
else<br />
{<br />
$browseinfo = "Unknown";<br />
}<br />
return $browseinfo;<br />
}<br />
//调用方法$browser=browseinfo() ;直接返回结果</p>
]]></content:encoded>
			<wfw:commentRss>http://www.3code.cn/php-ie-firfox-2/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>PHP chdir目录函数</title>
		<link>http://www.3code.cn/php-chdir/</link>
		<comments>http://www.3code.cn/php-chdir/#comments</comments>
		<pubDate>Wed, 09 Dec 2009 10:05:27 +0000</pubDate>
		<dc:creator>寒林</dc:creator>
				<category><![CDATA[PHP]]></category>
		<category><![CDATA[PHP 函数]]></category>

		<guid isPermaLink="false">http://www.3code.cn/?p=1230</guid>
		<description><![CDATA[chdir -- 改变目录


说明

bool chdir ( string directory )
将 PHP 的当前目录改为 directory。 ]]></description>
			<content:encoded><![CDATA[<p><strong>chdir -- 改变目录</strong><br />
<strong>说明</strong></p>
<p>bool chdir ( string directory )<br />
将 PHP 的当前目录改为 directory。</p>
<p><strong>参数</strong></p>
<p>directory<br />
新的当前目录</p>
<p><strong>返回值</strong><br />
如果成功则返回 TRUE，失败则返回 FALSE。</p>
<p><strong>范例</strong><br />
例 1. chdir() 例子</p>
<p>&lt;?php</p>
<p>// current directory<br />
echo getcwd() . "\n";</p>
<p>chdir('public_html');</p>
<p>// current directory<br />
echo getcwd() . "\n";</p>
<p>?&gt;</p>
<p><strong>上例的输出类似于：</strong></p>
<p>/home/vincent<br />
/home/vincent/public_html</p>
]]></content:encoded>
			<wfw:commentRss>http://www.3code.cn/php-chdir/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>PHP filemtime -- 取得文件修改时间</title>
		<link>http://www.3code.cn/php-filemtime/</link>
		<comments>http://www.3code.cn/php-filemtime/#comments</comments>
		<pubDate>Wed, 09 Dec 2009 01:34:04 +0000</pubDate>
		<dc:creator>寒林</dc:creator>
				<category><![CDATA[PHP]]></category>
		<category><![CDATA[PHP 函数]]></category>
		<category><![CDATA[PHP文件]]></category>

		<guid isPermaLink="false">http://www.3code.cn/?p=1228</guid>
		<description><![CDATA[
返回文件上次被修改的时间，出错时返回 FALSE。时间以 Unix 时间戳的方式返回，可用于 date()。

注: 本函数的结果会被缓存。详细信息参见 clearstatcache()。]]></description>
			<content:encoded><![CDATA[<p><strong>Php filemtime -- 取得文件修改时间</strong></p>
<p><strong>说明</strong><br />
int filemtime ( string filename )</p>
<p>返回文件上次被修改的时间，出错时返回 FALSE。时间以 Unix 时间戳的方式返回，可用于 date()。</p>
<p>注: 本函数的结果会被缓存。详细信息参见 clearstatcache()。</p>
<p>注: 本函数不能作用于远程文件，被检查的文件必须通过服务器的文件系统访问。</p>
<p>本函数返回文件中的数据块上次被写入的时间，也就是说，文件的内容上次被修改的时间。</p>
<p><strong>例子 1. filemtime() 例子</strong></p>
<p>&lt;?php<br />
// outputs e.g.  somefile.txt was last modified: December 29 2002 22:16:23.<br />
$filename = 'somefile.txt';<br />
if (file_exists($filename)) {<br />
echo "$filename was last modified: " . date ("F d Y H:i:s.", filemtime($filename));</p>
<p>}<br />
?&gt;</p>
]]></content:encoded>
			<wfw:commentRss>http://www.3code.cn/php-filemtime/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>PHP filesize -- 取得文件大小</title>
		<link>http://www.3code.cn/php-filesize/</link>
		<comments>http://www.3code.cn/php-filesize/#comments</comments>
		<pubDate>Wed, 09 Dec 2009 01:31:52 +0000</pubDate>
		<dc:creator>寒林</dc:creator>
				<category><![CDATA[PHP]]></category>
		<category><![CDATA[PHP 函数]]></category>
		<category><![CDATA[PHP文件]]></category>

		<guid isPermaLink="false">http://www.3code.cn/?p=1226</guid>
		<description><![CDATA[返回文件大小的字节数，如果出错返回 FALSE。

注: 因为 PHP 的整数类型是有符号的，并且大多数平台使用 32 位整数，filesize() 函数在碰到大于 2GB 的文件时可能会返回非预期的结果。对于 2GB 到 4GB 之间的文件通常可以使用 sprintf("%u", filesize($file)) 来克服此问题。 ]]></description>
			<content:encoded><![CDATA[<p><strong>PHP filesize -- 取得文件大小</strong>(PHP 3, PHP 4, PHP 5)<br />
<strong>说明</strong><br />
int filesize ( string filename )</p>
<p>返回文件大小的字节数，如果出错返回 FALSE。</p>
<p>注: 因为 PHP 的整数类型是有符号的，并且大多数平台使用 32 位整数，filesize() 函数在碰到大于 2GB 的文件时可能会返回非预期的结果。对于 2GB 到 4GB 之间的文件通常可以使用 sprintf("%u", filesize($file)) 来克服此问题。</p>
<p>注: 本函数的结果会被缓存。详细信息参见 clearstatcache()。</p>
<p>注: 本函数不能作用于远程文件，被检查的文件必须通过服务器的文件系统访问。</p>
<p><strong>例子 1. filesize() 例子</strong></p>
<p>&lt;?php</p>
<p>// 输出类似：somefile.txt: 1024 bytes</p>
<p>$filename = 'somefile.txt';<br />
echo $filename . ': ' . filesize($filename) . ' bytes';</p>
<p>?&gt;</p>
]]></content:encoded>
			<wfw:commentRss>http://www.3code.cn/php-filesize/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>php中的date函数详细介绍</title>
		<link>http://www.3code.cn/php-date-2/</link>
		<comments>http://www.3code.cn/php-date-2/#comments</comments>
		<pubDate>Tue, 08 Dec 2009 00:10:50 +0000</pubDate>
		<dc:creator>寒林</dc:creator>
				<category><![CDATA[PHP]]></category>
		<category><![CDATA[PHP 函数]]></category>

		<guid isPermaLink="false">http://www.3code.cn/?p=1221</guid>
		<description><![CDATA[返回将整数 timestamp
按照给定的格式字串而产生的字符串。如果没有给出时间戳则使用本地当前时间。换句话说，timestamp
是可选的，默认值为 time()。]]></description>
			<content:encoded><![CDATA[<p><strong>date</strong></p>
<table style="height: 100%;" border="0" cellspacing="0" cellpadding="0" width="100%">
<tbody>
<tr>
<td><img src="spacer.gif" alt="" width="10" height="1" /></td>
<td width="100%" height="100%" valign="TOP">
<div class="refnamediv"><a name="AEN22392"></a>date -- 格式化一个本地时间／日期</div>
<div class="refsect1"><a name="AEN22395"></a></p>
<h2>说明</h2>
<p>string <strong class="methodname">date</strong> ( string format [, int timestamp] )</p>
<p>返回将整数 <var class="parameter">timestamp</var><br />
按照给定的格式字串而产生的字符串。如果没有给出时间戳则使用本地当前时间。换句话说，<var class="parameter">timestamp</var><br />
是可选的，默认值为 <strong class="function">time()</strong>。</p>
<div class="note">
<blockquote class="note"><p><strong>注: </strong><br />
有效的时间戳典型范围是格林威治时间 1901 年 12 月 13 日 20:45:54<br />
到 2038 年 1 月 19 日 03:14:07。（此范围符合 32<br />
位有符号整数的最小值和最大值）。在 Windows 系统中此范围限制为从 1970 年 1 月 1 日到<br />
2038 年 1 月 19 日。</p></blockquote>
</div>
<div class="note">
<blockquote class="note"><p><strong>注: </strong><br />
要将字符串表达的时间转换成时间戳，应该使用<br />
<strong class="function">strtotime()</strong>。此外一些数据库有一些函数将其时间格式转换成时间戳（例如<br />
MySQL 的 UNIX_TIMESTAMP 函数）。</p></blockquote>
</div>
<div class="table"><a name="AEN22417"></a><br />
<strong>表格 1. 格式字串可以识别以下 <var class="parameter">format</var> 参数的字符串</strong></p>
<table class="CALSTABLE" border="1">
<col></col>
<col></col>
<col></col>
<thead>
<tr>
<th><var class="parameter">format</var> 字符</th>
<th>说明</th>
<th>返回值例子</th>
</tr>
</thead>
<tbody>
<tr>
<td><var class="literal">a</var></td>
<td>小写的上午和下午值</td>
<td><var class="literal">am</var> 或 <var class="literal">pm</var></td>
</tr>
<tr>
<td><var class="literal">A</var></td>
<td>大写的上午和下午值</td>
<td><var class="literal">AM</var> 或 <var class="literal">PM</var></td>
</tr>
<tr>
<td><var class="literal">B</var></td>
<td>Swatch Internet 标准时</td>
<td><var class="literal">000</var> 到 <var class="literal">999</var></td>
</tr>
<tr>
<td><var class="literal">d</var></td>
<td>月份中的第几天，有前导零的 2 位数字</td>
<td><var class="literal">01</var> 到 <var class="literal">31</var></td>
</tr>
<tr>
<td><var class="literal">D</var></td>
<td>星期中的第几天，文本表示，3 个字母</td>
<td><var class="literal">Mon</var> 到 <var class="literal">Sun</var></td>
</tr>
<tr>
<td><var class="literal">F</var></td>
<td>月份，完整的文本格式，例如 January 或者 March</td>
<td><var class="literal">January</var> 到 <var class="literal">December</var></td>
</tr>
<tr>
<td><var class="literal">g</var></td>
<td>小时，12 小时格式，没有前导零</td>
<td><var class="literal">1</var> 到 <var class="literal">12</var></td>
</tr>
<tr>
<td><var class="literal">G</var></td>
<td>小时，24 小时格式，没有前导零</td>
<td><var class="literal">0</var> 到 <var class="literal">23</var></td>
</tr>
<tr>
<td><var class="literal">h</var></td>
<td>小时，12 小时格式，有前导零</td>
<td><var class="literal">01</var> 到 <var class="literal">12</var></td>
</tr>
<tr>
<td><var class="literal">H</var></td>
<td>小时，24 小时格式，有前导零</td>
<td><var class="literal">00</var> 到 <var class="literal">23</var></td>
</tr>
<tr>
<td><var class="literal">i</var></td>
<td>有前导零的分钟数</td>
<td><var class="literal">00</var> 到 <var class="literal">59</var>&gt;</td>
</tr>
<tr>
<td><var class="literal">I</var></td>
<td>是否为夏令时</td>
<td>如果是夏令时为 <var class="literal">1</var>，否则为 <var class="literal">0</var></td>
</tr>
<tr>
<td><var class="literal">j</var></td>
<td>月份中的第几天，没有前导零</td>
<td><var class="literal">1</var> 到 <var class="literal">31</var></td>
</tr>
<tr>
<td><var class="literal">l</var>（“L”的小写字母）</td>
<td>星期几，完整的文本格式</td>
<td><var class="literal">Sunday</var> 到 <var class="literal">Saturday</var></td>
</tr>
<tr>
<td><var class="literal">L</var></td>
<td>是否为闰年</td>
<td>如果是闰年为 <var class="literal">1</var>，否则为 <var class="literal">0</var></td>
</tr>
<tr>
<td><var class="literal">m</var></td>
<td>数字表示的月份，有前导零</td>
<td><var class="literal">01</var> 到 <var class="literal">12</var></td>
</tr>
<tr>
<td><var class="literal">M</var></td>
<td>三个字母缩写表示的月份</td>
<td><var class="literal">Jan</var> 到 <var class="literal">Dec</var></td>
</tr>
<tr>
<td><var class="literal">n</var></td>
<td>数字表示的月份，没有前导零</td>
<td><var class="literal">1</var> 到 <var class="literal">12</var></td>
</tr>
<tr>
<td><var class="literal">O</var></td>
<td>与格林威治时间相差的小时数</td>
<td>例如：<var class="literal">+0200</var></td>
</tr>
<tr>
<td><var class="literal">r</var></td>
<td>RFC 822 格式的日期</td>
<td>例如：<var class="literal">Thu, 21 Dec 2000 16:01:07 +0200</var></td>
</tr>
<tr>
<td><var class="literal">s</var></td>
<td>秒数，有前导零</td>
<td><var class="literal">00</var> 到 <var class="literal">59</var>&gt;</td>
</tr>
<tr>
<td><var class="literal">S</var></td>
<td>每月天数后面的英文后缀，2 个字符</td>
<td><var class="literal">st</var>，<var class="literal">nd</var>，<var class="literal">rd</var> 或者 <var class="literal">th</var>。可以和 <var class="literal">j</var> 一起用。</td>
</tr>
<tr>
<td><var class="literal">t</var></td>
<td>给定月份所应有的天数</td>
<td><var class="literal">28</var> 到 <var class="literal">31</var></td>
</tr>
<tr>
<td><var class="literal">T</var></td>
<td>本机所在的时区</td>
<td>例如：<var class="literal">EST</var>，<var class="literal">MDT</var>（【译者注】在 Windows<br />
下为完整文本格式，例如“Eastern Standard Time”，中文版会显示“中国标准时间”）。</td>
</tr>
<tr>
<td><var class="literal">U</var></td>
<td>从 Unix 纪元（January 1 1970 00:00:00 GMT）开始至今的秒数</td>
<td>参见 <strong class="function">time()</strong></td>
</tr>
<tr>
<td><var class="literal">w</var></td>
<td>星期中的第几天，数字表示</td>
<td><var class="literal">0</var>（表示星期天）到 <var class="literal">6</var>（表示星期六）</td>
</tr>
<tr>
<td><var class="literal">W</var></td>
<td>ISO-8601 格式年份中的第几周，每周从星期一开始（PHP 4.1.0 新加的）</td>
<td>例如：<var class="literal">42</var>（当年的第 42 周）</td>
</tr>
<tr>
<td><var class="literal">Y</var></td>
<td>4 位数字完整表示的年份</td>
<td>例如：<var class="literal">1999</var> 或 <var class="literal">2003</var></td>
</tr>
<tr>
<td><var class="literal">y</var></td>
<td>2 位数字表示的年份</td>
<td>例如：<var class="literal">99</var> 或 <var class="literal">03</var></td>
</tr>
<tr>
<td><var class="literal">z</var></td>
<td>年份中的第几天</td>
<td><var class="literal">0</var> 到 <var class="literal">366</var></td>
</tr>
<tr>
<td><var class="literal">Z</var></td>
<td>时差偏移量的秒数。UTC 西边的时区偏移量总是负的，UTC 东边的时区偏移量总是正的。</td>
<td><var class="literal">-43200</var> 到 <var class="literal">43200</var></td>
</tr>
</tbody>
</table>
</div>
<p>格式字串中不能被识别的字符将原样显示。<var class="literal">Z</var> 格式在使用 <strong class="function">gmdate()</strong> 时总是返回 <var class="literal">0</var>。</p>
<table class="EXAMPLE" border="0" cellspacing="0" cellpadding="0" width="100%">
<tbody>
<tr>
<td>
<div class="example"><a name="AEN22649"></a><br />
<strong>例子 1. <strong class="function">date()</strong> 例子</strong></p>
<table border="0" cellpadding="5" bgcolor="#e0e0e0">
<tbody>
<tr>
<td><code><span style="color: #000000"><br />
<span style="color: #0000BB">&lt;?php<br />
</span><span style="color: #FF8000">// Prints something like: Wednesday<br />
</span><span style="color: #007700">echo </span><span style="color: #0000BB">date</span><span style="color: #007700">(</span><span style="color: #DD0000">"l"</span><span style="color: #007700">);</p>
<p></span><span style="color: #FF8000">// Prints something like: Wednesday 15th of January 2003 05:51:38 AM<br />
</span><span style="color: #007700">echo </span><span style="color: #0000BB">date </span><span style="color: #007700">(</span><span style="color: #DD0000">"l dS of F Y h:i:s A"</span><span style="color: #007700">);</p>
<p></span><span style="color: #FF8000">// Prints: July 1, 2000 is on a Saturday<br />
</span><span style="color: #007700">echo </span><span style="color: #DD0000">"July 1, 2000 is on a " </span><span style="color: #007700">. </span><span style="color: #0000BB">date </span><span style="color: #007700">(</span><span style="color: #DD0000">"l"</span><span style="color: #007700">, </span><span style="color: #0000BB">mktime</span><span style="color: #007700">(</span><span style="color: #0000BB">0</span><span style="color: #007700">,</span><span style="color: #0000BB">0</span><span style="color: #007700">,</span><span style="color: #0000BB">0</span><span style="color: #007700">,</span><span style="color: #0000BB">7</span><span style="color: #007700">,</span><span style="color: #0000BB">1</span><span style="color: #007700">,</span><span style="color: #0000BB">2000</span><span style="color: #007700">));<br />
</span><span style="color: #0000BB">?&gt;</span><br />
</span><br />
</code></td>
</tr>
</tbody>
</table>
</div>
</td>
</tr>
</tbody>
</table>
<p>在格式字串中的字符前加上反斜线来转义可以避免它被按照上表解释。如果加上反斜线后的字符本身就是一个特殊序列，那还要转义反斜线。</p>
<table class="EXAMPLE" border="0" cellspacing="0" cellpadding="0" width="100%">
<tbody>
<tr>
<td>
<div class="example"><a name="AEN22654"></a><br />
<strong>例子 2. 在 <strong class="function">date()</strong> 中转义字符</strong></p>
<table border="0" cellpadding="5" bgcolor="#e0e0e0">
<tbody>
<tr>
<td><code><span style="color: #000000"><br />
<span style="color: #0000BB">&lt;?php<br />
</span><span style="color: #FF8000">// prints something like: Wednesday the 15th<br />
</span><span style="color: #007700">echo </span><span style="color: #0000BB">date</span><span style="color: #007700">(</span><span style="color: #DD0000">"l \\t\h\e jS"</span><span style="color: #007700">);<br />
</span><span style="color: #0000BB">?&gt;</span><br />
</span><br />
</code></td>
</tr>
</tbody>
</table>
</div>
</td>
</tr>
</tbody>
</table>
<p>可以把 <strong class="function">date()</strong> 和<br />
<a href="function.mktime.html"><strong class="function">mktime()</strong></a> 结合使用来得到未来或过去的日期。</p>
<table class="EXAMPLE" border="0" cellspacing="0" cellpadding="0" width="100%">
<tbody>
<tr>
<td>
<div class="example"><a name="AEN22661"></a><br />
<strong>例子 3.<br />
<strong class="function">date()</strong> 和 <a href="function.mktime.html"><strong class="function">mktime()</strong></a> 例子<br />
</strong></p>
<table border="0" cellpadding="5" bgcolor="#e0e0e0">
<tbody>
<tr>
<td><code><span style="color: #000000"><br />
<span style="color: #0000BB">&lt;?php<br />
$tomorrow </span><span style="color: #007700">= </span><span style="color: #0000BB">mktime </span><span style="color: #007700">(</span><span style="color: #0000BB">0</span><span style="color: #007700">,</span><span style="color: #0000BB">0</span><span style="color: #007700">,</span><span style="color: #0000BB">0</span><span style="color: #007700">,</span><span style="color: #0000BB">date</span><span style="color: #007700">(</span><span style="color: #DD0000">"m"</span><span style="color: #007700">)  ,</span><span style="color: #0000BB">date</span><span style="color: #007700">(</span><span style="color: #DD0000">"d"</span><span style="color: #007700">)+</span><span style="color: #0000BB">1</span><span style="color: #007700">,</span><span style="color: #0000BB">date</span><span style="color: #007700">(</span><span style="color: #DD0000">"Y"</span><span style="color: #007700">));<br />
</span><span style="color: #0000BB">$lastmonth </span><span style="color: #007700">= </span><span style="color: #0000BB">mktime </span><span style="color: #007700">(</span><span style="color: #0000BB">0</span><span style="color: #007700">,</span><span style="color: #0000BB">0</span><span style="color: #007700">,</span><span style="color: #0000BB">0</span><span style="color: #007700">,</span><span style="color: #0000BB">date</span><span style="color: #007700">(</span><span style="color: #DD0000">"m"</span><span style="color: #007700">)-</span><span style="color: #0000BB">1</span><span style="color: #007700">,</span><span style="color: #0000BB">date</span><span style="color: #007700">(</span><span style="color: #DD0000">"d"</span><span style="color: #007700">), </span><span style="color: #0000BB">date</span><span style="color: #007700">(</span><span style="color: #DD0000">"Y"</span><span style="color: #007700">));<br />
</span><span style="color: #0000BB">$nextyear </span><span style="color: #007700">= </span><span style="color: #0000BB">mktime </span><span style="color: #007700">(</span><span style="color: #0000BB">0</span><span style="color: #007700">,</span><span style="color: #0000BB">0</span><span style="color: #007700">,</span><span style="color: #0000BB">0</span><span style="color: #007700">,</span><span style="color: #0000BB">date</span><span style="color: #007700">(</span><span style="color: #DD0000">"m"</span><span style="color: #007700">), </span><span style="color: #0000BB">date</span><span style="color: #007700">(</span><span style="color: #DD0000">"d"</span><span style="color: #007700">), </span><span style="color: #0000BB">date</span><span style="color: #007700">(</span><span style="color: #DD0000">"Y"</span><span style="color: #007700">)+</span><span style="color: #0000BB">1</span><span style="color: #007700">);<br />
</span><span style="color: #0000BB">?&gt;</span><br />
</span><br />
</code></td>
</tr>
</tbody>
</table>
</div>
</td>
</tr>
</tbody>
</table>
<div class="note">
<blockquote class="note"><p><strong>注: </strong><br />
由于夏令时的缘故，这种方法比简单地在时间戳上加减一天或者一个月的秒数更可靠。</p></blockquote>
</div>
<p>一些使用 <strong class="function">date()</strong><br />
格式化日期的例子。注意要转义所有其它的字符，因为目前有特殊含义的字符会产生不需要的结果，而其余字符在<br />
PHP 将来的版本中可能会被用上。当转义时，注意用单引号以避免类似 \n 的字符变成了换行符。</p>
<table class="EXAMPLE" border="0" cellspacing="0" cellpadding="0" width="100%">
<tbody>
<tr>
<td>
<div class="example"><a name="AEN22670"></a><br />
<strong>例子 4.<br />
<strong class="function">date()</strong> Formatting<br />
</strong></p>
<table border="0" cellpadding="5" bgcolor="#e0e0e0">
<tbody>
<tr>
<td><code><span style="color: #000000"><br />
<span style="color: #0000BB">&lt;?php<br />
</span><span style="color: #FF8000">// Assuming today is: March 10th, 2001, 5:16:18 pm<br />
</span><span style="color: #0000BB">$today </span><span style="color: #007700">= </span><span style="color: #0000BB">date</span><span style="color: #007700">(</span><span style="color: #DD0000">"F j, Y, g:i a"</span><span style="color: #007700">); </span><span style="color: #FF8000">// March 10, 2001, 5:16 pm<br />
</span><span style="color: #0000BB">$today </span><span style="color: #007700">= </span><span style="color: #0000BB">date</span><span style="color: #007700">(</span><span style="color: #DD0000">"m.d.y"</span><span style="color: #007700">); </span><span style="color: #FF8000">// 03.10.01<br />
</span><span style="color: #0000BB">$today </span><span style="color: #007700">= </span><span style="color: #0000BB">date</span><span style="color: #007700">(</span><span style="color: #DD0000">"j, n, Y"</span><span style="color: #007700">); </span><span style="color: #FF8000">// 10, 3, 2001<br />
</span><span style="color: #0000BB">$today </span><span style="color: #007700">= </span><span style="color: #0000BB">date</span><span style="color: #007700">(</span><span style="color: #DD0000">"Ymd"</span><span style="color: #007700">); </span><span style="color: #FF8000">// 20010310<br />
</span><span style="color: #0000BB">$today </span><span style="color: #007700">= </span><span style="color: #0000BB">date</span><span style="color: #007700">(</span><span style="color: #DD0000">'h-i-s, j-m-y, it is w Day z '</span><span style="color: #007700">); </span><span style="color: #FF8000">// 05-16-17, 10-03-01, 1631 1618 6 Fripm01<br />
</span><span style="color: #0000BB">$today </span><span style="color: #007700">= </span><span style="color: #0000BB">date</span><span style="color: #007700">(</span><span style="color: #DD0000">'\i\t \i\s \t\h\e jS \d\a\y.'</span><span style="color: #007700">); </span><span style="color: #FF8000">// It is the 10th day.<br />
</span><span style="color: #0000BB">$today </span><span style="color: #007700">= </span><span style="color: #0000BB">date</span><span style="color: #007700">(</span><span style="color: #DD0000">"D M j G:i:s T Y"</span><span style="color: #007700">); </span><span style="color: #FF8000">// Sat Mar 10 15:16:08 MST 2001<br />
</span><span style="color: #0000BB">$today </span><span style="color: #007700">= </span><span style="color: #0000BB">date</span><span style="color: #007700">(</span><span style="color: #DD0000">'H:m:s \m \i\s\ \m\o\n\t\h'</span><span style="color: #007700">); </span><span style="color: #FF8000">// 17:03:17 m is month<br />
</span><span style="color: #0000BB">$today </span><span style="color: #007700">= </span><span style="color: #0000BB">date</span><span style="color: #007700">(</span><span style="color: #DD0000">"H:i:s"</span><span style="color: #007700">); </span><span style="color: #FF8000">// 17:16:17<br />
</span><span style="color: #0000BB">?&gt;</span><br />
</span><br />
</code></td>
</tr>
</tbody>
</table>
</div>
</td>
</tr>
</tbody>
</table>
</div>
</td>
<td><img src="spacer.gif" alt="" width="10" height="1" /></td>
</tr>
<tr>
<td colspan="3">
<div class="NAVFOOTER">
<table border="0" cellspacing="0" cellpadding="0" width="100%" bgcolor="#ccccff">
<tbody>
<tr bgcolor="#333366">
<td><img src="spacer.gif" border="0" alt="" width="1" height="1" /></td>
</tr>
</tbody>
</table>
</div>
</td>
</tr>
</tbody>
</table>
]]></content:encoded>
			<wfw:commentRss>http://www.3code.cn/php-date-2/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>PHP验证EMAIL地址格式合法性</title>
		<link>http://www.3code.cn/php-email-address/</link>
		<comments>http://www.3code.cn/php-email-address/#comments</comments>
		<pubDate>Sun, 06 Dec 2009 22:12:10 +0000</pubDate>
		<dc:creator>寒林</dc:creator>
				<category><![CDATA[PHP]]></category>
		<category><![CDATA[PHP 函数]]></category>

		<guid isPermaLink="false">http://www.3code.cn/?p=1200</guid>
		<description><![CDATA[PHP验证EMAIL地址格式合法性

<?
//验证函数
function valid_email($email) {
// First, we check that there's one @ symbol, and that the lengths are right
if (!ereg("^[^@]{1,64}@[^@]{1,255}$", $email)) {
// Email invalid because wrong number of characters in one section, or wrong number of @ symbols.
return false;
} ]]></description>
			<content:encoded><![CDATA[<p><strong>PHP验证EMAIL地址格式合法性</strong></p>
<p>&lt;?<br />
//验证函数<br />
function valid_email($email) {<br />
// First, we check that there's one @ symbol, and that the lengths are right<br />
if (!ereg("^[^@]{1,64}@[^@]{1,255}$", $email)) {<br />
// Email invalid because wrong number of characters in one section, or wrong number of @ symbols.<br />
return false;<br />
}<br />
// Split it into sections to make life easier<br />
$email_array = explode("@", $email);<br />
$local_array = explode(".", $email_array[0]);<br />
for ($i = 0; $i &lt; sizeof($local_array); $i++) {<br />
if (!ereg("^(([A-Za-z0-9!#$%&amp;#038;'*+/=?^_`{|}~-][A-Za-z0-9!#$%&amp;#038;'*+/=?^_`{|}~\.-]{0,63})|(\"[^(\\|\")]{0,62}\"))$", $local_array[$i])) {<br />
return false;<br />
}<br />
}<br />
if (!ereg("^\[?[0-9\.]+\]?$", $email_array[1])) { // Check if domain is IP. If not, it should be valid domain name<br />
$domain_array = explode(".", $email_array[1]);<br />
if (sizeof($domain_array) &lt; 2) {<br />
return false; // Not enough parts to domain<br />
}<br />
for ($i = 0; $i &lt; sizeof($domain_array); $i++) {<br />
if (!ereg("^(([A-Za-z0-9][A-Za-z0-9-]{0,61}[A-Za-z0-9])|([A-Za-z0-9]+))$", $domain_array[$i])) {<br />
return false;<br />
}<br />
}<br />
}<br />
return true;<br />
}<br />
?&gt;</p>
<p><strong>使用示例</strong></p>
<p>&lt;?<br />
if(!valid_email($email)){<br />
echo"&lt;script&gt;alert('Please enter a valid e-mail address');location.href='javascript:history.back()'&lt;/script&gt;";<br />
}else{<br />
//这里放验证成功后的其它语句<br />
}</p>
<p>?&gt;</p>
<p>在这里可以看到<a href="http://www.3code.cn/asp-email-address">asp验证email</a>和<a href="../js-email/">js验证email地址格式</a>之后，再说一下ASP验证EMAIL地址格式<br />
的函数:</p>
]]></content:encoded>
			<wfw:commentRss>http://www.3code.cn/php-email-address/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

