<?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>山湖居</title>
	<atom:link href="http://www.abzz.net/blog/index.php?feed=rss2" rel="self" type="application/rss+xml" />
	<link>http://www.abzz.net/blog</link>
	<description>php+mysql,网页前端开发,网站程序</description>
	<lastBuildDate>Mon, 07 Jun 2010 02:01:34 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8.6</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>php100视频教程解压密码-连载(转载)</title>
		<link>http://www.abzz.net/blog/?p=120</link>
		<comments>http://www.abzz.net/blog/?p=120#comments</comments>
		<pubDate>Tue, 11 May 2010 02:06:26 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[PHP]]></category>

		<guid isPermaLink="false">http://www.abzz.net/blog/?p=120</guid>
		<description><![CDATA[<p>第75讲的解压密码是:php100-18293-2938-2839-348-#<br />
第76讲的解压密码是:<span style="color: #000000; font-size: small;">php100-18634-6254-1001-283-#</span><br />
第77讲的解压密码是:php100-1839&#8230;</p>]]></description>
			<content:encoded><![CDATA[<p>第75讲的解压密码是:php100-18293-2938-2839-348-#<br />
第76讲的解压密码是:<span style="color: #000000; font-size: small;">php100-18634-6254-1001-283-#</span><br />
第77讲的解压密码是:php100-18394-9384-2333-314-#<br />
第78讲的密码是:php100-28323-5837-2734-392-#<br />
第79讲的密码是:php100-83343-5234-8849-122-#<br />
第80讲的密码是:php100-18622-5751-1311-233-#<br />
第81讲没有密码了,估计是张老师忘设密码了,呵呵。<br />
第82讲的密码是：<span>php100-18028-4321-1202-942-#</span><br />
第83讲的密码是：<span>php100-18942-3321-1232-010-#</span><br />
第84讲的密码是：php100-18823-3333-1322-842-#<br />
第85讲的密码是：php100-00000-0000-0000-000-#<br />
第86讲的密码是：大家发贴更新<br />
第87讲的密码是：大家发贴更新<br />
第88讲的密码是：大家发贴更新<br />
第89讲的密码是：大家发贴更新<br />
第90讲的密码是：大家发贴更新<br />
方便大家了.</p>
<p>现在是个开源的时代&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;..<br />
请大家copy密码的时候,注意别把两边的空格贴上了.</p>
<p>转自:华夏之星(http://hi.baidu.com/woaidelphi/blog/item/d2d0ef553f4002cfb645ae2c.html/cmtid/b4d10c244a240d0c4d088dca#b4d10c244a240d0c4d088dca)</p>
<img src="http://www.abzz.net/blog/?ak_action=api_record_view&id=120&type=feed" alt="" />]]></content:encoded>
			<wfw:commentRss>http://www.abzz.net/blog/?feed=rss2&amp;p=120</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>php字符串处理相关函数(转帖)</title>
		<link>http://www.abzz.net/blog/?p=118</link>
		<comments>http://www.abzz.net/blog/?p=118#comments</comments>
		<pubDate>Tue, 29 Dec 2009 05:22:46 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[PHP]]></category>

		<guid isPermaLink="false">http://www.abzz.net/blog/?p=118</guid>
		<description><![CDATA[<table border="0" width="100%">
<tbody>
<tr>
<td align="right" valign="top"><a href="http://www.itlearner.com/code/php/function.php-AddSlashes.php">AddSlashes</a>:</td>
<td valign="top">字符串加入斜线。</td>
</tr>
<tr>
<td align="right" valign="top"><a href="http://www.itlearner.com/code/php/function.php-bin2hex.php">bin2hex</a>:</td>
<td valign="top">二进位转成十六进位。</td>
</tr>
<tr>
<td align="right" valign="top"><a href="http://www.itlearner.com/code/php/function.php-Chop.php">Chop</a>:</td>
<td valign="top">去除连续空白。</td>
</tr>
<tr>
<td align="right" valign="top"><a href="http://www.itlearner.com/code/php/function.php-Chr.php">Chr</a>:</td>
<td valign="top">返回序数值的字符。</td>
</tr>
<tr>
<td align="right" valign="top"><a href="http://www.itlearner.com/code/php/function.php-chunk_split.php">chunk_split</a>:</td>
<td valign="top">将字符串分成小段。</td>
</tr>
<tr>
<td align="right" valign="top"><a href="http://www.itlearner.com/code/php/function.php-convert_cyr_string.php">convert_cyr_strin&#8230;</a></td></tr></tbody></table>]]></description>
			<content:encoded><![CDATA[<table border="0" width="100%">
<tbody>
<tr>
<td align="right" valign="top"><a href="http://www.itlearner.com/code/php/function.php-AddSlashes.php">AddSlashes</a>:</td>
<td valign="top">字符串加入斜线。</td>
</tr>
<tr>
<td align="right" valign="top"><a href="http://www.itlearner.com/code/php/function.php-bin2hex.php">bin2hex</a>:</td>
<td valign="top">二进位转成十六进位。</td>
</tr>
<tr>
<td align="right" valign="top"><a href="http://www.itlearner.com/code/php/function.php-Chop.php">Chop</a>:</td>
<td valign="top">去除连续空白。</td>
</tr>
<tr>
<td align="right" valign="top"><a href="http://www.itlearner.com/code/php/function.php-Chr.php">Chr</a>:</td>
<td valign="top">返回序数值的字符。</td>
</tr>
<tr>
<td align="right" valign="top"><a href="http://www.itlearner.com/code/php/function.php-chunk_split.php">chunk_split</a>:</td>
<td valign="top">将字符串分成小段。</td>
</tr>
<tr>
<td align="right" valign="top"><a href="http://www.itlearner.com/code/php/function.php-convert_cyr_string.php">convert_cyr_string</a>:</td>
<td valign="top">转换古斯拉夫字符串成其它字符串。</td>
</tr>
<tr>
<td align="right" valign="top"><a href="http://www.itlearner.com/code/php/function.php-crypt.php">crypt</a>:</td>
<td valign="top">将字符串用 DES 编码加密。</td>
</tr>
<tr>
<td align="right" valign="top"><a href="http://www.itlearner.com/code/php/function.php-echo.php">echo</a>:</td>
<td valign="top">输出字符串。</td>
</tr>
<tr>
<td align="right" valign="top"><a href="http://www.itlearner.com/code/php/function.php-explode.php">explode</a>:</td>
<td valign="top">切开字符串。</td>
</tr>
<tr>
<td align="right" valign="top"><a href="http://www.itlearner.com/code/php/function.php-flush.php">flush</a>:</td>
<td valign="top">清出输出缓冲区。</td>
</tr>
<tr>
<td align="right" valign="top"><a href="http://www.itlearner.com/code/php/function.php-get_meta_tags.php">get_meta_tags</a>:</td>
<td valign="top">抽出文件所有 meta 标记的资料。</td>
</tr>
<tr>
<td align="right" valign="top"><a href="http://www.itlearner.com/code/php/function.php-htmlspecialchars.php">htmlspecialchars</a>:</td>
<td valign="top">将特殊字符转成 HTML 格式。</td>
</tr>
<tr>
<td align="right" valign="top"><a href="http://www.itlearner.com/code/php/function.php-htmlentities.php">htmlentities</a>:</td>
<td valign="top">将所有的字符都转成 HTML 字符串。</td>
</tr>
<tr>
<td align="right" valign="top"><a href="http://www.itlearner.com/code/php/function.php-implode.php">implode</a>:</td>
<td valign="top">将数组变成字符串。</td>
</tr>
<tr>
<td align="right" valign="top"><a href="http://www.itlearner.com/code/php/function.php-join.php">join</a>:</td>
<td valign="top">将数组变成字符串。</td>
</tr>
<tr>
<td align="right" valign="top"><a href="http://www.itlearner.com/code/php/function.php-ltrim.php">ltrim</a>:</td>
<td valign="top">去除连续空白。</td>
</tr>
<tr>
<td align="right" valign="top"><a href="http://www.itlearner.com/code/php/function.php-md5.php">md5</a>:</td>
<td valign="top">计算字符串的 MD5 哈稀。</td>
</tr>
<tr>
<td align="right" valign="top"><a href="http://www.itlearner.com/code/php/function.php-nl2br.php">nl2br</a>:</td>
<td valign="top">将换行字符转成 &lt;br&gt;。</td>
</tr>
<tr>
<td align="right" valign="top"><a href="http://www.itlearner.com/code/php/function.php-Ord.php">Ord</a>:</td>
<td valign="top">返回字符的序数值。</td>
</tr>
<tr>
<td align="right" valign="top"><a href="http://www.itlearner.com/code/php/function.php-parse_str.php">parse_str</a>:</td>
<td valign="top">解析 query 字符串成变量。</td>
</tr>
<tr>
<td align="right" valign="top"><a href="http://www.itlearner.com/code/php/function.php-print.php">print</a>:</td>
<td valign="top">输出字符串。</td>
</tr>
<tr>
<td align="right" valign="top"><a href="http://www.itlearner.com/code/php/function.php-printf.php">printf</a>:</td>
<td valign="top">输出格式化字符串。</td>
</tr>
<tr>
<td align="right" valign="top"><a href="http://www.itlearner.com/code/php/function.php-quoted_printable_decode.php">quoted_printable_decode</a>:</td>
<td valign="top">将 qp 编码字符串转成 8 位字符串。</td>
</tr>
<tr>
<td align="right" valign="top"><a href="http://www.itlearner.com/code/php/function.php-QuoteMeta.php">QuoteMeta</a>:</td>
<td valign="top">加入引用符号。</td>
</tr>
<tr>
<td align="right" valign="top"><a href="http://www.itlearner.com/code/php/function.php-rawurldecode.php">rawurldecode</a>:</td>
<td valign="top">从 URL 专用格式字符串还原成普通字符串。</td>
</tr>
<tr>
<td align="right" valign="top"><a href="http://www.itlearner.com/code/php/function.php-rawurlencode.php">rawurlencode</a>:</td>
<td valign="top">将字符串编码成 URL 专用格式。</td>
</tr>
<tr>
<td align="right" valign="top"><a href="http://www.itlearner.com/code/php/function.php-setlocale.php">setlocale</a>:</td>
<td valign="top">配置地域化信息。</td>
</tr>
<tr>
<td align="right" valign="top"><a href="http://www.itlearner.com/code/php/function.php-similar_text.php">similar_text</a>:</td>
<td valign="top">计算字符串相似度。</td>
</tr>
<tr>
<td align="right" valign="top"><a href="http://www.itlearner.com/code/php/function.php-soundex.php">soundex</a>:</td>
<td valign="top">计算字符串的读音值</td>
</tr>
<tr>
<td align="right" valign="top"><a href="http://www.itlearner.com/code/php/function.php-sprintf.php">sprintf</a>:</td>
<td valign="top">将字符串格式化。</td>
</tr>
<tr>
<td align="right" valign="top"><a href="http://www.itlearner.com/code/php/function.php-strchr.php">strchr</a>:</td>
<td valign="top">寻找第一个出现的字符。</td>
</tr>
<tr>
<td align="right" valign="top"><a href="http://www.itlearner.com/code/php/function.php-strcmp.php">strcmp</a>:</td>
<td valign="top">字符串比较。</td>
</tr>
<tr>
<td align="right" valign="top"><a href="http://www.itlearner.com/code/php/function.php-strcspn.php">strcspn</a>:</td>
<td valign="top">不同字符串的长度。</td>
</tr>
<tr>
<td align="right" valign="top"><a href="http://www.itlearner.com/code/php/function.php-strip_tags.php">strip_tags</a>:</td>
<td valign="top">去掉 HTML 及 PHP 的标记。</td>
</tr>
<tr>
<td align="right" valign="top"><a href="http://www.itlearner.com/code/php/function.php-StripSlashes.php">StripSlashes</a>:</td>
<td valign="top">去掉反斜线字符。</td>
</tr>
<tr>
<td align="right" valign="top"><a href="http://www.itlearner.com/code/php/function.php-strlen.php">strlen</a>:</td>
<td valign="top">取得字符串长度。</td>
</tr>
<tr>
<td align="right" valign="top"><a href="http://www.itlearner.com/code/php/function.php-strrpos.php">strrpos</a>:</td>
<td valign="top">寻找字符串中某字符最后出现处。</td>
</tr>
<tr>
<td align="right" valign="top"><a href="http://www.itlearner.com/code/php/function.php-strpos.php">strpos</a>:</td>
<td valign="top">寻找字符串中某字符最先出现处。</td>
</tr>
<tr>
<td align="right" valign="top"><a href="http://www.itlearner.com/code/php/function.php-strrchr.php">strrchr</a>:</td>
<td valign="top">取得某字符最后出现处起的字符串。</td>
</tr>
<tr>
<td align="right" valign="top"><a href="http://www.itlearner.com/code/php/function.php-strrev.php">strrev</a>:</td>
<td valign="top">颠倒字符串。</td>
</tr>
<tr>
<td align="right" valign="top"><a href="http://www.itlearner.com/code/php/function.php-strspn.php">strspn</a>:</td>
<td valign="top">找出某字符串落在另一字符串遮罩的数目。</td>
</tr>
<tr>
<td align="right" valign="top"><a href="http://www.itlearner.com/code/php/function.php-strstr.php">strstr</a>:</td>
<td valign="top">返回字符串中某字符串开始处至结束的字符串。</td>
</tr>
<tr>
<td align="right" valign="top"><a href="http://www.itlearner.com/code/php/function.php-strtok.php">strtok</a>:</td>
<td valign="top">切开字符串。</td>
</tr>
<tr>
<td align="right" valign="top"><a href="http://www.itlearner.com/code/php/function.php-strtolower.php">strtolower</a>:</td>
<td valign="top">字符串全转为小写。</td>
</tr>
<tr>
<td align="right" valign="top"><a href="http://www.itlearner.com/code/php/function.php-strtoupper.php">strtoupper</a>:</td>
<td valign="top">字符串全转为大写。</td>
</tr>
<tr>
<td align="right" valign="top"><a href="http://www.itlearner.com/code/php/function.php-str_replace.php">str_replace</a>:</td>
<td valign="top">字符串取代。</td>
</tr>
<tr>
<td align="right" valign="top"><a href="http://www.itlearner.com/code/php/function.php-strtr.php">strtr</a>:</td>
<td valign="top">转换某些字符。</td>
</tr>
<tr>
<td align="right" valign="top"><a href="http://www.itlearner.com/code/php/function.php-substr.php">substr</a>:</td>
<td valign="top">取部份字符串。</td>
</tr>
<tr>
<td align="right" valign="top"><a href="http://www.itlearner.com/code/php/function.php-trim.php">trim</a>:</td>
<td valign="top">截去字符串首尾的空格。</td>
</tr>
<tr>
<td align="right" valign="top"><a href="http://www.itlearner.com/code/php/function.php-ucfirst.php">ucfirst</a>:</td>
<td valign="top">将字符串第一个字符改大写。</td>
</tr>
<tr>
<td align="right" valign="top"><a href="http://www.itlearner.com/code/php/function.php-ucwords.php">ucwords</a>:</td>
<td valign="top">将字符串每个字第一个字母改大写。</td>
</tr>
</tbody>
</table>
<img src="http://www.abzz.net/blog/?ak_action=api_record_view&id=118&type=feed" alt="" />]]></content:encoded>
			<wfw:commentRss>http://www.abzz.net/blog/?feed=rss2&amp;p=118</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>PHP删除重复数组元素专用函数array_flip()</title>
		<link>http://www.abzz.net/blog/?p=116</link>
		<comments>http://www.abzz.net/blog/?p=116#comments</comments>
		<pubDate>Tue, 29 Dec 2009 05:18:31 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[PHP]]></category>

		<guid isPermaLink="false">http://www.abzz.net/blog/?p=116</guid>
		<description><![CDATA[<h2>说明</h2>
<p>array <strong>array_flip</strong> ( array trans )</p>
<p><strong>array_flip()</strong> 返回一个反转后的 <strong>array</strong>，例如 <var>trans</var> 中的键名变成了值，而 <var>trans</var> 中的值成了键名。<span id="more-116"></span></p>
<p>注意 <var>trans</var> 中的值需要能够作&#8230;</p>]]></description>
			<content:encoded><![CDATA[<h2>说明</h2>
<p>array <strong>array_flip</strong> ( array trans )</p>
<p><strong>array_flip()</strong> 返回一个反转后的 <strong>array</strong>，例如 <var>trans</var> 中的键名变成了值，而 <var>trans</var> 中的值成了键名。<span id="more-116"></span></p>
<p>注意 <var>trans</var> 中的值需要能够作为合法的键名，例如需要是 <strong>integer</strong> 或者 <strong>string</strong>。如果值的类型不对将发出一个警告，并且有问题的键／值对<span><em>将不会反转</em></span>。</p>
<p>如果同一个值出现了多次，则最后一个键名将作为它的值，所有其它的都丢失了。</p>
<p><strong>array_flip()</strong> 如果失败返回 <tt><strong>FALSE</strong></tt>。</p>
<p>实例:</p>
<p>$hills=array(&#8221;first&#8221;=&gt;&#8221;data1&#8243;,&#8221;second&#8221;=&gt;&#8221;data2&#8243;,&#8221;third&#8221;=&gt;&#8221;data1&#8243;);</p>
<p>$hills=array_flip($hills); //还原键名</p>
<p>$hills1=array_flip(array_flip($hills));//删除重复</p>
<p>display $hills1结果是:</p>
<p>data2 data1两个数据.</p>
<img src="http://www.abzz.net/blog/?ak_action=api_record_view&id=116&type=feed" alt="" />]]></content:encoded>
			<wfw:commentRss>http://www.abzz.net/blog/?feed=rss2&amp;p=116</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>php中date()-日期时间函数详解</title>
		<link>http://www.abzz.net/blog/?p=111</link>
		<comments>http://www.abzz.net/blog/?p=111#comments</comments>
		<pubDate>Fri, 25 Dec 2009 06:07:50 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[PHP]]></category>

		<guid isPermaLink="false">http://www.abzz.net/blog/?p=111</guid>
		<description><![CDATA[<p><strong>1，年-月-日<br />
</strong>echo date(&#8217;Y-m-j&#8217;);<br />
2007-02-6</p>
<p>echo  date(&#8217;y-n-j&#8217;);<br />
07-2-6<span id="more-111"></span></p>
<p>大写Y表示年四位数字，而小写y表示年&#8230;</p>]]></description>
			<content:encoded><![CDATA[<p><strong>1，年-月-日<br />
</strong>echo date(&#8217;Y-m-j&#8217;);<br />
2007-02-6</p>
<p>echo  date(&#8217;y-n-j&#8217;);<br />
07-2-6<span id="more-111"></span></p>
<p>大写Y表示年四位数字，而小写y表示年的两位数字；<br />
小写m表示月份的数字(带前导)，而小写n则表示不带前导的月份数字。</p>
<p>echo  date(&#8217;Y-M-j&#8217;);<br />
2007-Feb-6</p>
<p>echo  date(&#8217;Y-m-d&#8217;);<br />
2007-02-06</p>
<p>大写M表示月份的3个缩写字符，而小写m则表示月份的数字(带前导0);<br />
没有大写的J，只有小写j表示月份的日期，无前导o；若需要月份带前导则使用小写d。</p>
<p>echo  date(&#8217;Y-M-j&#8217;);<br />
2007-Feb-6</p>
<p>echo  date(&#8217;Y-F-jS&#8217;);<br />
2007-February-6th</p>
<p>大写M表示月份的3个缩写字符，而大写F表示月份的英文全写。(没有小写f)<br />
大写S表示日期的后缀，比如“st”、“nd”、“rd”和“th”，具体看日期数字为何。</p>
<p><strong>小结：</strong><br />
表示年可以用大写的Y和小写y;<br />
表示月可以用大写F、大写M、小写m和小写n(分别表示字符和数字的两种方式);<br />
表示日可以用小写d和小写j，大写S表示日期的后缀。</p>
<p><strong>2，时:分:秒</strong></p>
<p>默认情况下，PHP解释显示的时间为“格林威治标准时间”，与我们本地的时间相差8个小时。</p>
<p>echo  date(&#8217;g:i:s a&#8217;);<br />
5:56:57 am</p>
<p>echo date(&#8217;h:i:s A&#8217;);<br />
05:56:57  AM</p>
<p>小写g表示12小时制，无前导0，而小写h则表示有前导0的12小时制。<br />
当使用12小时制时需要表明上下午，小写a表示小写的“am”和“pm”，大写A表示大写的“AM”和“PM”。</p>
<p>echo  date(&#8217;G:i:s&#8217;);<br />
14:02:26</p>
<p>大写G表示24小时制的小时数，但是不带前导的；使用大写的H表示带前导的24小时制小时数</p>
<p><strong>小结：</strong><br />
字母g表示小时不带前导，字母h表示小时带前导；<br />
小写g、h表示12小时制，大写G、H表示24小时制。</p>
<p><strong>3，闰年、星期、天</strong></p>
<p>echo  date(&#8217;L');<br />
今年是否闰年：0</p>
<p>echo date(&#8217;l');<br />
今天是：Tuesday</p>
<p>echo  date(&#8217;D');<br />
今天是：Tue</p>
<p>大写L表示判断今年是否闰年，布尔值，为真返回1，否则为0；<br />
小写l表示当天是星期几的英文全写(Tuesday)；<br />
而使用大写D表示星期几的3个字符缩写(Tue)。</p>
<p>echo  date(&#8217;w');<br />
今天星期：2</p>
<p>echo date(&#8217;W');<br />
本周是全年中的第 06  周</p>
<p>小写w表示星期几，数字形式表示<br />
大写W表示一年中的星期数</p>
<p>echo date(&#8217;t');<br />
本月是 28  天</p>
<p>echo date(&#8217;z');<br />
今天是今年的第 36  天</p>
<p>小写t表示当前月份又多少天<br />
小写z表示今天是本年中第几天</p>
<p><strong>4，其他</strong></p>
<p>echo  date(&#8217;T');<br />
UTC<br />
大写T表示服务器的时间区域设置</p>
<p>echo  date(&#8217;I');<br />
0<br />
大写I表示判断当前是否为夏令时，为真返回1，否则为0</p>
<p>echo  date(&#8217;U');<br />
1170769424<br />
大写U表示从1970年1月1日到现在的总秒数，就是Unix时间纪元的UNIX时间戳。</p>
<p>echo  date(&#8217;c');<br />
2007-02-06T14:24:43+00:00<br />
小写c表示ISO8601日期，日期格式为YYYY-MM-DD，用字母T来间隔日期和时间，时间格式为HH:MM:SS，时区使用格林威治标准时间(GMT)的偏差来表示。</p>
<p>echo  date(&#8217;r');<br />
Tue, 06 Feb 2007 14:25:52 +0000<br />
小写r表示RFC822日期。</p>
<p>实例:</p>
<p>&lt;?php<br />
/*<br />
@author hills<br />
@tencentqq 3303911<br />
@web www.abzz.net<br />
@email hackhgs@qq.com<br />
@blog blog.abzz.net<br />
@mobiletelethone 1345-2626-567<br />
@filecreate 2009-12-25-13:20,copyright hills<br />
*/<br />
$utc=date(&#8221;T&#8221;);<br />
if ($utc==&#8221;UTC&#8221;)<br />
$h=date(&#8221;h&#8221;)+8;<br />
$dateshow=date(&#8221;Y-m-d &#8220;.$h.&#8221;:i:s&#8221;);<br />
function rn()<br />
{<br />
if (date(&#8221;L&#8221;)==1)<br />
{<br />
echo &#8220;是&#8221;;<br />
}<br />
else<br />
{<br />
echo &#8220;否&#8221;;<br />
}<br />
}<br />
$weeks=date(&#8221;l&#8221;);<br />
$year=date(&#8221;W&#8221;);<br />
$dayyear=date(&#8221;z&#8221;);<br />
$weeksmemberic=date(&#8221;t&#8221;);<br />
?&gt;<br />
&lt;!DOCTYPE html PUBLIC &#8220;-//W3C//DTD XHTML 1.0 Transitional//EN&#8221; &#8220;http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd&#8221;&gt;<br />
&lt;html xmlns=&#8221;http://www.w3.org/1999/xhtml&#8221;&gt;<br />
&lt;head&gt;<br />
&lt;meta http-equiv=&#8221;x-ua-compatible&#8221; content=&#8221;IE=EmulateIE7&#8243; /&gt;<br />
&lt;meta http-equiv=&#8221;content-language&#8221; content=&#8221;zh-cn&#8221; /&gt;<br />
&lt;meta http-equiv=&#8221;content-type&#8221; content=&#8221;text/html; charset=utf-8&#8243; /&gt;<br />
&lt;meta http-equiv=&#8221;keywords&#8221; content=&#8221;date()函数&#8221; /&gt;<br />
&lt;meta http-equiv=&#8221;description&#8221; content=&#8221;date()函数&#8221; /&gt;<br />
&lt;meta http-equiv=&#8221;author&#8221; content=&#8221;hills&#8221; /&gt;<br />
&lt;title&gt;date()函数&lt;/title&gt;<br />
&lt;link href=&#8221;css/default.css&#8221; rel=&#8221;stylesheet&#8221; media=&#8221;all&#8221; type=&#8221;text/css&#8221; /&gt;<br />
&lt;/head&gt;<br />
&lt;body&gt;<br />
&lt;div&gt;<br />
&lt;div&gt;<br />
&lt;ul&gt;<br />
&lt;li&gt;&lt;?php echo &#8220;时区:&#8221;.$utc;?&gt;&lt;/li&gt;<br />
&lt;li&gt;&lt;?php echo &#8220;当前时间(+8):&#8221;.$dateshow;?&gt;&lt;/li&gt;<br />
&lt;li&gt;&lt;?php echo (&#8221;是否闰年:&#8221;); rn();?&gt;&lt;/li&gt;<br />
&lt;li&gt;&lt;?php echo &#8220;星期:&#8221;.$weeks;?&gt;&lt;/li&gt;<br />
&lt;li&gt;&lt;?php echo &#8220;今天是全年中第:&#8221;.$year.&#8221;周&#8221;;?&gt;&lt;/li&gt;<br />
&lt;li&gt;&lt;?php echo &#8220;今天是今年的第&#8221;.$dayyear.&#8221;天&#8221;;?&gt;&lt;/li&gt;<br />
&lt;li&gt;&lt;?php echo &#8220;本月一共有&#8221;.$weeksmemberic.&#8221;天&#8221;;?&gt;&lt;/li&gt;<br />
&lt;/ul&gt;<br />
&lt;/div&gt;<br />
&lt;/div&gt;<br />
&lt;/body&gt;<br />
&lt;/html&gt;</p>
<img src="http://www.abzz.net/blog/?ak_action=api_record_view&id=111&type=feed" alt="" />]]></content:encoded>
			<wfw:commentRss>http://www.abzz.net/blog/?feed=rss2&amp;p=111</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>php+mysql创建字段并设置主键样例</title>
		<link>http://www.abzz.net/blog/?p=109</link>
		<comments>http://www.abzz.net/blog/?p=109#comments</comments>
		<pubDate>Wed, 23 Dec 2009 08:00:49 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[MYSQL]]></category>
		<category><![CDATA[PHP]]></category>

		<guid isPermaLink="false">http://www.abzz.net/blog/?p=109</guid>
		<description><![CDATA[<p>mysql_select_db(&#8221;hills_database_test&#8221;,$dbcon);<br />
$alterpkadd=&#8221;alter table hills_testcre&#8230;</p>]]></description>
			<content:encoded><![CDATA[<p>mysql_select_db(&#8221;hills_database_test&#8221;,$dbcon);<br />
$alterpkadd=&#8221;alter table hills_testcreatetable add id int(32) not null auto_increment primary key;&#8221;;<br />
mysql_query($alterpkadd,$dbcon);<br />
mysql_close($dbcon);</p>
<img src="http://www.abzz.net/blog/?ak_action=api_record_view&id=109&type=feed" alt="" />]]></content:encoded>
			<wfw:commentRss>http://www.abzz.net/blog/?feed=rss2&amp;p=109</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>php+mysql字段增/改/删样例</title>
		<link>http://www.abzz.net/blog/?p=107</link>
		<comments>http://www.abzz.net/blog/?p=107#comments</comments>
		<pubDate>Wed, 23 Dec 2009 07:49:46 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[MYSQL]]></category>
		<category><![CDATA[PHP]]></category>

		<guid isPermaLink="false">http://www.abzz.net/blog/?p=107</guid>
		<description><![CDATA[<p>//增加字段<br />
mysql_select_db(&#8221;hills_database_test&#8221;,$dbcon);<br />
$altersql=&#8221;alter table hills_tes&#8230;</p>]]></description>
			<content:encoded><![CDATA[<p>//增加字段<br />
mysql_select_db(&#8221;hills_database_test&#8221;,$dbcon);<br />
$altersql=&#8221;alter table hills_testcreatetable add fourth varchar(255);&#8221;;<br />
mysql_query($altersql,$dbcon);<br />
mysql_close($dbcon);</p>
<p>//修改字段<br />
mysql_select_db(&#8221;hills_database_test&#8221;,$dbcon);<br />
$alteredit=&#8221;alter table hills_testcreatetable change fourth edit_fourth varchar(128);&#8221;;<br />
mysql_query($alteredit,$dbcon);<br />
mysql_close($dbcon);</p>
<p>//删除字段<br />
mysql_select_db(&#8221;hills_database_test&#8221;,$dbcon);<br />
$alterdelete=&#8221;alter table hills_testcreatetable drop edit_fourth;&#8221;;<br />
mysql_query($alterdelete,$dbcon);<br />
mysql_close($dbcon);</p>
<img src="http://www.abzz.net/blog/?ak_action=api_record_view&id=107&type=feed" alt="" />]]></content:encoded>
			<wfw:commentRss>http://www.abzz.net/blog/?feed=rss2&amp;p=107</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>php+mysql删除数据库样例</title>
		<link>http://www.abzz.net/blog/?p=105</link>
		<comments>http://www.abzz.net/blog/?p=105#comments</comments>
		<pubDate>Wed, 23 Dec 2009 06:22:06 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[MYSQL]]></category>
		<category><![CDATA[PHP]]></category>

		<guid isPermaLink="false">http://www.abzz.net/blog/?p=105</guid>
		<description><![CDATA[<p>if (mysql_query(&#8221;drop database hills_database_test&#8221;))<br />
{<br />
echo &#8220;delete databased&#8221;;<br />
}<br />
el&#8230;</p>]]></description>
			<content:encoded><![CDATA[<p>if (mysql_query(&#8221;drop database hills_database_test&#8221;))<br />
{<br />
echo &#8220;delete databased&#8221;;<br />
}<br />
else<br />
{<br />
echo &#8220;error delete database:&#8221;.mysql_error();<br />
}</p>
<p>其中hills_database_test为数据库,if语句为报错详细设置.</p>
<img src="http://www.abzz.net/blog/?ak_action=api_record_view&id=105&type=feed" alt="" />]]></content:encoded>
			<wfw:commentRss>http://www.abzz.net/blog/?feed=rss2&amp;p=105</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>php+mysql建表样例</title>
		<link>http://www.abzz.net/blog/?p=102</link>
		<comments>http://www.abzz.net/blog/?p=102#comments</comments>
		<pubDate>Wed, 23 Dec 2009 06:10:04 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[MYSQL]]></category>
		<category><![CDATA[PHP]]></category>

		<guid isPermaLink="false">http://www.abzz.net/blog/?p=102</guid>
		<description><![CDATA[<p>&#60;?php</p>
<p>mysql_select_db(&#8221;hills_database_test&#8221;,$dbcon);<br />
$sql=&#8221;create table hills_testc&#8230;</p>]]></description>
			<content:encoded><![CDATA[<p>&lt;?php</p>
<p>mysql_select_db(&#8221;hills_database_test&#8221;,$dbcon);<br />
$sql=&#8221;create table hills_testcreatetable(first varchar(15),second varchar(15),third int)&#8221;;<br />
mysql_query($sql,$dbcon);<br />
mysql_close($dbcon);</p>
<p>?&gt;</p>
<p>其中hills_database_test是数据库名,$dbcon是mysql连接变量.</p>
<img src="http://www.abzz.net/blog/?ak_action=api_record_view&id=102&type=feed" alt="" />]]></content:encoded>
			<wfw:commentRss>http://www.abzz.net/blog/?feed=rss2&amp;p=102</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>php+mysql创建数据库赋字符集(utf-8)样例</title>
		<link>http://www.abzz.net/blog/?p=99</link>
		<comments>http://www.abzz.net/blog/?p=99#comments</comments>
		<pubDate>Wed, 23 Dec 2009 06:06:27 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[MYSQL]]></category>
		<category><![CDATA[PHP]]></category>

		<guid isPermaLink="false">http://www.abzz.net/blog/?p=99</guid>
		<description><![CDATA[<p>if (mysql_query(&#8221;create database hills_database_test default character set &#8216;utf8&#8242;;&#8221;&#8230;</p>]]></description>
			<content:encoded><![CDATA[<p>if (mysql_query(&#8221;create database hills_database_test default character set &#8216;utf8&#8242;;&#8221;,$dbcon))<br />
{<br />
echo &#8220;database created&#8221;;<br />
}<br />
else<br />
{<br />
echo &#8220;error creating database:&#8221;.mysql_error();<br />
}</p>
<p>其中的default character set &#8216;utf8&#8242;为设置数据库默认字符集.</p>
<img src="http://www.abzz.net/blog/?ak_action=api_record_view&id=99&type=feed" alt="" />]]></content:encoded>
			<wfw:commentRss>http://www.abzz.net/blog/?feed=rss2&amp;p=99</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>收集的正则表达式口诀</title>
		<link>http://www.abzz.net/blog/?p=96</link>
		<comments>http://www.abzz.net/blog/?p=96#comments</comments>
		<pubDate>Tue, 22 Dec 2009 03:47:14 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[regular expression]]></category>

		<guid isPermaLink="false">http://www.abzz.net/blog/?p=96</guid>
		<description><![CDATA[<div id="read_tpc">正则其实也势利，削尖头来把钱揣； （指开始符号^和结尾符号$） <span style="display: none;">60@]^g;$I </span><br />
特殊符号认不了，弄个倒杠来引路； （指\. \*等特殊符号）  <span style="display: none;">/2#1Oi)o </span><br />
倒杠后面跟小w， 数字字母来表示；  （\w跟数字字&#8230;</div>]]></description>
			<content:encoded><![CDATA[<div id="read_tpc">正则其实也势利，削尖头来把钱揣； （指开始符号^和结尾符号$） <span style="display: none;">60@]^g;$I </span><br />
特殊符号认不了，弄个倒杠来引路； （指\. \*等特殊符号）  <span style="display: none;">/2#1Oi)o </span><br />
倒杠后面跟小w， 数字字母来表示；  （\w跟数字字母;\d跟数字） <span style="display: none;">=%+O. </span><span id="more-96"></span><br />
倒杠后面跟小d，  只有数字来表示； <span style="display: none;">l6O8:XI </span><br />
倒杠后面跟小a， 报警符号嘀一声；  <span style="display: none;">M7JQw/,xs </span><br />
倒杠后面跟小b， 单词分界或退格； <span style="display: none;">4&#8242; MmT&#8217; </span><br />
倒杠后面跟小t， 制表符号很明了； <span style="display: none;">^}PG*h| </span><br />
倒杠后面跟小r， 回车符号知道了； <span style="display: none;">O&#8221;6 (k{` </span><br />
倒杠后面跟小s， 空格符号很重要； <span style="display: none;">iXsX@ S^F </span><br />
小写跟罢跟大写，多得实在不得了； <span style="display: none;">N3rq8Rk </span><br />
倒杠后面跟大W， 字母数字靠边站； <span style="display: none;">5z~O3QX </span><br />
倒杠后面跟大S， 空白也就靠边站； <span style="display: none;">9m+ejTK{U </span><br />
倒杠后面跟大D， 数字从此靠边站； <span style="display: none;">,%X&#8221;Caz </span><br />
倒框后面跟大B， 不含开头和结尾； <span style="display: none;">`37%|e3bQ </span><br />
<span style="display: none;">dIq*&#8221;Ry+~ </span><br />
单个字符要重复，三个符号来帮忙； （* + ？） <span style="display: none;">6c[Slq!KA </span><br />
0 星加1 到无穷，问号只管0 和1；  （*表0-n;+表1-n;?表0-1次重复） <span style="display: none;">FG5YZrONx </span><br />
花括号里学问多，重复操作能力强； （{n} {n,} {n,m}） <span style="display: none;">4Dw|  I${O </span><br />
若要重复字符串，园括把它括起来； （（abc）{3} 表示字符串“abc”重复3次 ） <span style="display: none;">l{8t;!2t </span><br />
特殊集合自定义，中括号来帮你忙； <span style="display: none;">ekCt1^5Y </span><br />
转义符号行不通，一个一个来排队； <span style="display: none;">A",Xn /d </span><br />
实在多得排不下，横杠请来帮个忙； （[1-5]） <span style="display: none;">Q5c13g2(c </span><br />
尖头放进中括号，反义定义威力大； （[^a]指除“a”外的任意字符 ）  <span style="display: none;">S~\u]j^%y </span><br />
1竖作用可不小，两边正则互替换；  （键盘上与“\”是同一个键） <span style="display: none;">k-8$ 43 </span><br />
1竖能用很多次，复杂定义很方便； <span style="display: none;">N=;VS- </span><br />
园括号，用途多； <span style="display: none;">*!u a? </span><br />
反向引用指定组，数字排符对应它； （“\b(\w+)\b\s+\1\b”中的数字“1”引用前面的“(\w+)”） <span style="display: none;">K*oWcsu </span><br />
支持组名自定义，问号加上尖括号；  （“(?\w+)”中把“\w+”定义为组，组名为“Word”） <span style="display: none;">ns9a+QQ </span><br />
园括号，用途多，位置指定全靠它； <span style="display: none;">2B&amp;|0&amp;WI </span><br />
问号等号字符串，定位字符串前面； （“\b\w+(?=ing\b)”定位“ing”前面的字符串） <span style="display: none;"> XV*uu &#8220;F </span><br />
若要定位串后面，中间插个小于号；  （“(?&lt;=\bsub)\w+\b”定位“sub”后面的字符串） <span style="display: none;">5&lt;KY} </span><br />
问号加个惊叹号，后面跟串字符串； <span style="display: none;">2^C&gt;orKQ0 </span><br />
PHPer都知道， ！是取反的意思； <span style="display: none;">NM_Xy&lt;.~E </span><br />
后面不跟这一串，统统符合来报到； （“\w*d(?!og)\w*”，“dog”不符合，“do”符合） <span style="display: none;">P\R#!+FgW8 </span><br />
问号小于惊叹号，后面跟串字符串； <span style="display: none;">Vy7o}z` </span><br />
前面不放这一串，统统符合来报到； <span style="display: none;">08TeGUjJ </span><br />
点号星号很贪婪，加个问号不贪婪； <span style="display: none;">hPB^|#} </span><br />
加号问号有保底，至少重复一次多； <span style="display: none;">~d072qUos </span><br />
两个问号老规矩，0次1次团团转； <span style="display: none;">9_ </span><br />
花括号后跟个？，贪婪变成不贪婪； <span style="display: none;">zG. \xmp </span><br />
还有很多装不下，等着以后来增加</div>
<img src="http://www.abzz.net/blog/?ak_action=api_record_view&id=96&type=feed" alt="" />]]></content:encoded>
			<wfw:commentRss>http://www.abzz.net/blog/?feed=rss2&amp;p=96</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
