<?xml version="1.0" encoding="UTF-8" ?>
<rss version="2.0">
<channel>
<title><![CDATA[向东博客 专注WEB应用 构架之美 --- 构架之美，在于尽态极妍 | 应用之美，在于药到病除]]></title> 
<link>http://www.jackxiang.com/index.php</link> 
<description><![CDATA[赢在IT，Playin' with IT,Focus on Killer Application,Marketing Meets Technology.]]></description> 
<language>zh-cn</language> 
<copyright><![CDATA[向东博客 专注WEB应用 构架之美 --- 构架之美，在于尽态极妍 | 应用之美，在于药到病除]]></copyright>
<item>
<link>http://www.jackxiang.com/post/2796/</link>
<title><![CDATA[三道PHP面试题]]></title> 
<author>jack &lt;xdy108@126.com&gt;</author>
<category><![CDATA[WEB2.0]]></category>
<pubDate>Thu, 11 Mar 2010 12:44:26 +0000</pubDate> 
<guid>http://www.jackxiang.com/post/2796/</guid> 
<description>
<![CDATA[ 
	有三道PHP的面试题，除了第三题需要一些经验和对HTTP协议理解外，前面两题其实很简单，但是很少遇到有人答正确的，大部分人我想都不是技术问题，而是思考是否严谨的问题。<br/><br/>1. 下面语句输出什么？为什么？ <br/>if ($a=$b)&nbsp;&nbsp;printf(“a==b”); <br/>else&nbsp;&nbsp;printf(“a!=b”)；<br/>2. $array[‘anykey’]和$array[anykey]有什么区别？<br/>3. 写出使用telnet命令通过GET的方式访问http://www.jackxiang.com/index.php 得到页面返回的方法（不是用PHP实现，用dos或者unix命令行实现）。<br/><br/>答案仅供参考：<br/>1.<br/>第一题<br/>if ($a=$b) printf(“a==b”);<br/>else printf(“a!=b”)；<br/>程序把$b赋值给$a，然后判断$a值~~~因为$=null 所以$a自然为false<br/> $b赋值给$a,$b===NULL???<br/><br/>2. key2value ‘anykey’是key, anykey是value&nbsp;&nbsp;第二题可以查看PHP查考里数组的&#92;”数组做什么和不做什么&#92;”<br/>这样写的话在警告没有打开的条件 不会出现提示错误的 anykey 只要没有定义成常量 效果一样 （节约了两个单引号） ：）<br/>3.telnet www.jackxiang.com 80<br/>&nbsp;&nbsp; get /index.php&nbsp;&nbsp;&nbsp;&nbsp;HTTP/1.1 <br/><br/>curl可能更强大！
]]>
</description>
</item><item>
<link>http://www.jackxiang.com/post/2796/#blogcomment51542</link>
<title><![CDATA[[评论] 三道PHP面试题]]></title> 
<author>丁丁 &lt;user@domain.com&gt;</author>
<category><![CDATA[评论]]></category>
<pubDate>Fri, 12 Mar 2010 04:00:18 +0000</pubDate> 
<guid>http://www.jackxiang.com/post/2796/#blogcomment51542</guid> 
<description>
<![CDATA[ 
	
]]>
</description>
</item>
</channel>
</rss>