<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	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/"
		>
<channel>
	<title>评论：is_null(), empty(), unset() 区别和用法 PHP</title>
	<atom:link href="http://www.wangchao123.com/2009/06/05/64/feed" rel="self" type="application/rss+xml" />
	<link>http://www.wangchao123.com/2009/06/05/64</link>
	<description>code player 海盗精神 - 他们向往自由，面对大海胸怀宽广，只拿他们想要的，遵守契约，单纯而且机智。</description>
	<lastBuildDate>Wed, 04 Aug 2010 07:51:52 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<xhtml:meta xmlns:xhtml="http://www.w3.org/1999/xhtml" name="robots" content="noindex" />
	<item>
		<title>来自：is_null(), empty(), unset() 区别和用法 PHP &#171; 部落格</title>
		<link>http://www.wangchao123.com/2009/06/05/64/comment-page-1#comment-33</link>
		<dc:creator>is_null(), empty(), unset() 区别和用法 PHP &#171; 部落格</dc:creator>
		<pubDate>Wed, 16 Sep 2009 04:04:44 +0000</pubDate>
		<guid isPermaLink="false">http://www.wangchao123.com/?p=64#comment-33</guid>
		<description>[...] 1. 如果在函数中 unset() 一个全局变量，则只是局部变量被销毁，而在调用环境中的变量将保持调用 unset() 之前一样的值。 &lt;?php function destroy_foo() {     global $foo;     unset($foo); } $foo = &#039;bar&#039;; destroy_foo(); echo $foo; ?&gt;  结果: bar 2.如果在函数中 unset() 一个静态变量，则 unset() 将销毁此变量及其所有的引用。 &lt;?php function foo() {     static $a;     $a++;     echo &quot;$an&quot;;     unset($a); } foo(); foo(); foo(); ?&gt;   结果: 1 2 3 3.如果您想在函数中 unset() 一个全局变量，可使用 $GLOBALS 数组来实现： &lt;?php function foo() {     unset($GLOBALS[&#039;bar&#039;]); } $bar = &quot;something&quot;; foo(); ?&gt;   原文：http://www.wangchao123.com/2009/06/05/64 [...]</description>
		<content:encoded><![CDATA[<p>[...] 1. 如果在函数中 unset() 一个全局变量，则只是局部变量被销毁，而在调用环境中的变量将保持调用 unset() 之前一样的值。 &lt;?php function destroy_foo() {     global $foo;     unset($foo); } $foo = &#39;bar&#39;; destroy_foo(); echo $foo; ?&gt;  结果: bar 2.如果在函数中 unset() 一个静态变量，则 unset() 将销毁此变量及其所有的引用。 &lt;?php function foo() {     static $a;     $a++;     echo &quot;$an&quot;;     unset($a); } foo(); foo(); foo(); ?&gt;   结果: 1 2 3 3.如果您想在函数中 unset() 一个全局变量，可使用 $GLOBALS 数组来实现： &lt;?php function foo() {     unset($GLOBALS[&#39;bar&#39;]); } $bar = &quot;something&quot;; foo(); ?&gt;   原文：http://www.wangchao123.com/2009/06/05/64 [...]</p>
]]></content:encoded>
	</item>
</channel>
</rss>
