<?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>Webburners &#187; interview php question</title>
	<atom:link href="http://www.webburners.com/tag/interview-php-question/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.webburners.com</link>
	<description>We Burn the web with our expertise</description>
	<lastBuildDate>Thu, 08 Apr 2010 12:53:42 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Interview questions For PHP</title>
		<link>http://www.webburners.com/2009/04/interview-questions-for-php/</link>
		<comments>http://www.webburners.com/2009/04/interview-questions-for-php/#comments</comments>
		<pubDate>Fri, 03 Apr 2009 15:48:29 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[php]]></category>
		<category><![CDATA[constants in php]]></category>
		<category><![CDATA[interview php question]]></category>
		<category><![CDATA[interview questions]]></category>
		<category><![CDATA[require and include in php]]></category>
		<category><![CDATA[tech interview]]></category>
		<category><![CDATA[ternary operators]]></category>

		<guid isPermaLink="false">http://www.webburners.com/?p=120</guid>
		<description><![CDATA[


What does a special set of tags 	&#60;?= and ?&#62; do in PHP?
Its called short tag , in this case 	the output is directly displayed on the browser without using the 	echo or print statement.


What’s the difference between 	include and require,include_once and require_once? &#8211; In case of 	include and require it differ in  how [...]]]></description>
			<content:encoded><![CDATA[<p><!-- 		@page { size: 21cm 29.7cm; margin: 2cm } 		P { margin-bottom: 0.21cm } --></p>
<ul>
<li>
<p style="margin-bottom: 0cm;"><strong>What does a special set of tags 	&lt;?= and ?&gt; do in PHP?</strong></p>
<p style="margin-bottom: 0cm;">Its called short tag , in this case 	the output is directly displayed on the browser without using the 	echo or print statement.</p>
</li>
<li>
<p style="margin-bottom: 0cm;"><strong>What’s the difference between 	include and require,include_once and require_once? &#8211; In case of 	include and require it differ in </strong> how they handle failures. If 	the file is not found by require(), it will definatly cause a fatal 	error and halt the execution of the script. If the file is not found 	by include(), a warning will be issued, but execution will continue.</p>
<p style="margin-bottom: 0cm;">Where as in case of include_once and 	require_once the basic differnence remain the same as      the above 	mentioned but both have a common feature in which the script or the 	file is included  only once irrespective of how many times a file is 	included in the program , it definatley fast up the execution where 	same file is included many times.</p>
<p style="margin-bottom: 0cm;">
</li>
<li><strong>I am trying to assign a variable the value of 0123, but it 	keeps coming up with a different number, what’s the problem?</strong> -
<p>PHP Interpreter treats numbers beginning with 0 as octal. Thats 	the main reason.</li>
<li>
<p style="margin-bottom: 0cm;"><a name="more-243"></a><strong>Would I 	use print &#8220;$a dollars&#8221; or &#8220;{$a} dollars&#8221; to 	print out the amount of dollars in this example?</strong> &#8211; In this 	example it wouldn’t matter, since the variable is all by itself, 	but if you were to print something like &#8220;{$a},000,000 mln 	dollars&#8221;, then you definitely need to use the braces.</p>
</li>
<li>
<p style="margin-bottom: 0cm;"><strong>How do you define a constant?</strong> -</p>
<p style="margin-bottom: 0cm;">We can do this by  define() directive, 	like <code><span style="color: #0000bb;">define</span></code><code><span style="color: #007700;">(</span></code><code><span style="color: #dd0000;">"ROOT"</span></code><code><span style="color: #007700;">, </span></code><code><span style="color: #dd0000;">"localhost"</span></code><code><span style="color: #007700;">); </span></code> and A valid constant name starts with a letter or underscore, 	followed by any number of letters, numbers, or underscores.</p>
</li>
<li>
<p style="margin-bottom: 0cm;"><strong>How do you pass a variable by 	value?</strong> -</p>
<p style="margin-bottom: 0cm;">As we do in  C++, place  an ampersand 	in front of it, like $a = &amp;$b</p>
</li>
<li>
<p style="margin-bottom: 0cm;"><strong>Will comparison of string &#8220;10&#8243; 	and integer 11 work in PHP? </strong>-</p>
<p style="margin-bottom: 0cm;">Yes, internally PHP will cast 	everything to the integer type, so numbers 10 and 11 will be 	compared.</p>
</li>
<li>
<p style="margin-bottom: 0cm;"><strong>When are you supposed to use 	endif to end the conditional statement?</strong></p>
<p style="margin-bottom: 0cm;">When the original if was followed 	by : and then the code block without braces.</p>
</li>
</ul>
]]></content:encoded>
			<wfw:commentRss>http://www.webburners.com/2009/04/interview-questions-for-php/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
