<?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>what is parse error in php - Wikitechy</title>
	<atom:link href="https://www.wikitechy.com/interview-questions/tag/what-is-parse-error-in-php/feed/" rel="self" type="application/rss+xml" />
	<link>https://www.wikitechy.com/interview-questions/tag/what-is-parse-error-in-php/</link>
	<description>Interview Questions</description>
	<lastBuildDate>Tue, 02 Aug 2022 10:54:34 +0000</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=6.9.4</generator>

<image>
	<url>https://www.wikitechy.com/interview-questions/wp-content/uploads/2025/10/cropped-wikitechy-icon-32x32.png</url>
	<title>what is parse error in php - Wikitechy</title>
	<link>https://www.wikitechy.com/interview-questions/tag/what-is-parse-error-in-php/</link>
	<width>32</width>
	<height>32</height>
</image> 
	<item>
		<title>What are the types of errors in PHP ?</title>
		<link>https://www.wikitechy.com/interview-questions/php/what-are-the-types-of-errors-in-php/</link>
					<comments>https://www.wikitechy.com/interview-questions/php/what-are-the-types-of-errors-in-php/#respond</comments>
		
		<dc:creator><![CDATA[webmaster]]></dc:creator>
		<pubDate>Tue, 02 Aug 2022 10:54:21 +0000</pubDate>
				<category><![CDATA[PHP]]></category>
		<category><![CDATA[how many types of error in php]]></category>
		<category><![CDATA[how to fix php error]]></category>
		<category><![CDATA[php errors]]></category>
		<category><![CDATA[types of errors]]></category>
		<category><![CDATA[types of errors in php]]></category>
		<category><![CDATA[what are the different types of errors in php]]></category>
		<category><![CDATA[what are the types of errors in php]]></category>
		<category><![CDATA[what is error in php]]></category>
		<category><![CDATA[what is fatal error in php]]></category>
		<category><![CDATA[what is parse error in php]]></category>
		<category><![CDATA[what is warning error in php]]></category>
		<guid isPermaLink="false">https://www.wikitechy.com/interview-questions/?p=4549</guid>

					<description><![CDATA[In a programmer, error is a mistake that may be caused by writing incorrect code or incorrect syntax. An error message is displayed on your browser containing the filename along with a message describing the error, location and the line number in which error has occurred. In PHP there are various types of errors that [&#8230;]]]></description>
										<content:encoded><![CDATA[<ul>
<li style="text-align: justify;">In a programmer, error is a mistake that may be caused by writing incorrect code or incorrect syntax.</li>
<li style="text-align: justify;">An error message is displayed on your browser containing the filename along with a message describing the error, location and the line number in which error has occurred.</li>
<li style="text-align: justify;">In PHP there are various types of errors that contains basically four main types of errors, they are
<ul>
<li>Syntax Error or Parse Error</li>
<li>Fatal Error</li>
<li>Warning Error</li>
<li>Notice Error</li>
</ul>
</li>
</ul>
<p style="text-align: justify;"><img fetchpriority="high" decoding="async" class="alignnone size-full wp-image-4550" src="https://www.wikitechy.com/interview-questions/wp-content/uploads/2022/08/types-of-errors.png" alt="" width="1756" height="849" srcset="https://www.wikitechy.com/interview-questions/wp-content/uploads/2022/08/types-of-errors.png 1756w, https://www.wikitechy.com/interview-questions/wp-content/uploads/2022/08/types-of-errors-300x145.png 300w, https://www.wikitechy.com/interview-questions/wp-content/uploads/2022/08/types-of-errors-1024x495.png 1024w, https://www.wikitechy.com/interview-questions/wp-content/uploads/2022/08/types-of-errors-768x371.png 768w, https://www.wikitechy.com/interview-questions/wp-content/uploads/2022/08/types-of-errors-1536x743.png 1536w, https://www.wikitechy.com/interview-questions/wp-content/uploads/2022/08/types-of-errors-390x189.png 390w, https://www.wikitechy.com/interview-questions/wp-content/uploads/2022/08/types-of-errors-820x396.png 820w, https://www.wikitechy.com/interview-questions/wp-content/uploads/2022/08/types-of-errors-1180x571.png 1180w" sizes="(max-width: 1756px) 100vw, 1756px" /></p>
<h2 id="syntax-error-or-parse-error" style="text-align: justify;">Syntax Error or Parse Error</h2>
<ul style="text-align: justify;">
<li>A syntax error is a mistake in the syntax of source code, which can be done by programmers due to their lack of knowledge or concern.</li>
<li>At compile time compiler is used to catch the syntax error.</li>
<li>Due to common reasons these errors can occur like missing semicolon, unclosed quotes, or unclosed brackets, extra or missing parentheses and many more.</li>
<li>While compiling the program syntax error can be caught by the compiler and gives a syntax error or parse error message.</li>
</ul>
<h3 id="sample-code" style="text-align: justify;">Sample Code</h3>
<div class="code-embed-wrapper"> <div class="code-embed-infos"> </div> <pre class="language-php code-embed-pre line-numbers"  data-start="1" data-line-offset="0"><code class="language-php code-embed-code">&lt;?php  <br/>    /*------------------syntax error-------------------*/  <br/>    echo &quot;Venkat: Hie! I&#039;m Venkat. &lt;/br&gt;&quot;;  <br/>    echo &quot;Lokesh: I&#039;m Lokesh. How are you?&quot;  <br/>    echo &quot;Venkat: I&#039;m good! and you?&quot;;  <br/>    echo &quot;Lokesh: I&#039;m also good&quot;;  <br/>?&gt;  </code></pre> </div>
<h3 id="output" style="text-align: justify;">Output</h3>
<p style="text-align: justify;"><img decoding="async" class="alignnone size-full wp-image-4551" src="https://www.wikitechy.com/interview-questions/wp-content/uploads/2022/08/syntax-error.png" alt="" width="1427" height="163" srcset="https://www.wikitechy.com/interview-questions/wp-content/uploads/2022/08/syntax-error.png 1427w, https://www.wikitechy.com/interview-questions/wp-content/uploads/2022/08/syntax-error-300x34.png 300w, https://www.wikitechy.com/interview-questions/wp-content/uploads/2022/08/syntax-error-1024x117.png 1024w, https://www.wikitechy.com/interview-questions/wp-content/uploads/2022/08/syntax-error-768x88.png 768w, https://www.wikitechy.com/interview-questions/wp-content/uploads/2022/08/syntax-error-390x45.png 390w, https://www.wikitechy.com/interview-questions/wp-content/uploads/2022/08/syntax-error-820x94.png 820w, https://www.wikitechy.com/interview-questions/wp-content/uploads/2022/08/syntax-error-1180x135.png 1180w" sizes="(max-width: 1427px) 100vw, 1427px" /></p>
<h2 id="fatal-error" style="text-align: justify;">Fatal Error</h2>
<ul style="text-align: justify;">
<li>Fatal error is another type of error, which is occurred due to the use of undefined function.</li>
<li>The PHP compiler understands the PHP code and also recognizes the undefined function.</li>
<li>PHP compiler generates a fatal error, when a function is called without providing its definition.</li>
</ul>
<h3 id="sample-code-2" style="text-align: justify;">Sample Code</h3>
<div class="code-embed-wrapper"> <div class="code-embed-infos"> </div> <pre class="language-php code-embed-pre line-numbers"  data-start="1" data-line-offset="0"><code class="language-php code-embed-code">&lt;?php  <br/>    /*------------------fatal error-------------------*/  <br/>    function add($f1, $f2) {  <br/>        $sum = $f1 + $f2;  <br/>        echo &quot;Addition:&quot; . $sum;  <br/>    }  <br/>      <br/>    $f1 = 23;  <br/>    $f2 = 56;  <br/>      <br/>    //call the function that is not defined  <br/>    //Generate fatal error  <br/>    catch_fatal_error();  <br/>    //echo &quot;Fatal Error&quot;;     <br/>?&gt;  </code></pre> </div>
<h3 id="output-2" style="text-align: justify;">Output</h3>
<p style="text-align: justify;"><img decoding="async" class="alignnone size-full wp-image-4552" src="https://www.wikitechy.com/interview-questions/wp-content/uploads/2022/08/fatal-error.png" alt="" width="1425" height="158" srcset="https://www.wikitechy.com/interview-questions/wp-content/uploads/2022/08/fatal-error.png 1425w, https://www.wikitechy.com/interview-questions/wp-content/uploads/2022/08/fatal-error-300x33.png 300w, https://www.wikitechy.com/interview-questions/wp-content/uploads/2022/08/fatal-error-1024x114.png 1024w, https://www.wikitechy.com/interview-questions/wp-content/uploads/2022/08/fatal-error-768x85.png 768w, https://www.wikitechy.com/interview-questions/wp-content/uploads/2022/08/fatal-error-390x43.png 390w, https://www.wikitechy.com/interview-questions/wp-content/uploads/2022/08/fatal-error-820x91.png 820w, https://www.wikitechy.com/interview-questions/wp-content/uploads/2022/08/fatal-error-1180x131.png 1180w" sizes="(max-width: 1425px) 100vw, 1425px" /></p>
<h3 id="warning-error" style="text-align: justify;">Warning Error</h3>
<ul style="text-align: justify;">
<li>When the programmer tries to include a missing file there warning error is generated.</li>
<li>The PHP function calls that missing file which does not exist and warning error does not stop/prevent the execution of the program.</li>
</ul>
<h3 id="sample-code-3" style="text-align: justify;">Sample Code</h3>
<div class="code-embed-wrapper"> <div class="code-embed-infos"> </div> <pre class="language-php code-embed-pre line-numbers"  data-start="1" data-line-offset="0"><code class="language-php code-embed-code">&lt;?php  <br/>    /*-------------------warning error------------------*/  <br/>    $cmpny = &#039;Wikitechy&#039;;  <br/>    echo &quot;Warning Error: &quot;;  <br/>      <br/>    //include a file in the code  <br/>    include (&#039;jtp.php&#039;);      <br/>?&gt;</code></pre> </div>
<h3 id="output-3" style="text-align: justify;">Output</h3>
<p style="text-align: justify;"><img loading="lazy" decoding="async" class="alignnone size-full wp-image-4553" src="https://www.wikitechy.com/interview-questions/wp-content/uploads/2022/08/warning-error.png" alt="" width="1434" height="323" srcset="https://www.wikitechy.com/interview-questions/wp-content/uploads/2022/08/warning-error.png 1434w, https://www.wikitechy.com/interview-questions/wp-content/uploads/2022/08/warning-error-300x68.png 300w, https://www.wikitechy.com/interview-questions/wp-content/uploads/2022/08/warning-error-1024x231.png 1024w, https://www.wikitechy.com/interview-questions/wp-content/uploads/2022/08/warning-error-768x173.png 768w, https://www.wikitechy.com/interview-questions/wp-content/uploads/2022/08/warning-error-390x88.png 390w, https://www.wikitechy.com/interview-questions/wp-content/uploads/2022/08/warning-error-820x185.png 820w, https://www.wikitechy.com/interview-questions/wp-content/uploads/2022/08/warning-error-1180x266.png 1180w" sizes="(max-width: 1434px) 100vw, 1434px" /></p>
<h2 id="notice-error" style="text-align: justify;">Notice Error</h2>
<ul style="text-align: justify;">
<li>Notice error is also same as warning error, when program contains something wrong, the notice error occurs.</li>
<li>Including a notice error, it allows/continue the execution of the program.</li>
<li>Notice error does not prevent the execution of the code and generally it occurs when we try to use or access a variable which is undefined.</li>
</ul>
<h3 id="sample-code-4" style="text-align: justify;">Sample Code</h3>
<div class="code-embed-wrapper"> <div class="code-embed-infos"> </div> <pre class="language-php code-embed-pre line-numbers"  data-start="1" data-line-offset="0"><code class="language-php code-embed-code">&lt;?php  <br/>    /*------------------notice error-------------------*/  <br/>    $telecom = &quot;Airtel&quot;;  <br/>    echo $telecom;  <br/>    echo $automobile;  <br/>?&gt;  </code></pre> </div>
<h3 id="output-4" style="text-align: justify;">Output</h3>
<p style="text-align: justify;"><img loading="lazy" decoding="async" class="alignnone size-full wp-image-4554" src="https://www.wikitechy.com/interview-questions/wp-content/uploads/2022/08/notice-error.png" alt="" width="1434" height="201" srcset="https://www.wikitechy.com/interview-questions/wp-content/uploads/2022/08/notice-error.png 1434w, https://www.wikitechy.com/interview-questions/wp-content/uploads/2022/08/notice-error-300x42.png 300w, https://www.wikitechy.com/interview-questions/wp-content/uploads/2022/08/notice-error-1024x144.png 1024w, https://www.wikitechy.com/interview-questions/wp-content/uploads/2022/08/notice-error-768x108.png 768w, https://www.wikitechy.com/interview-questions/wp-content/uploads/2022/08/notice-error-390x55.png 390w, https://www.wikitechy.com/interview-questions/wp-content/uploads/2022/08/notice-error-820x115.png 820w, https://www.wikitechy.com/interview-questions/wp-content/uploads/2022/08/notice-error-1180x165.png 1180w" sizes="(max-width: 1434px) 100vw, 1434px" /></p>
<p style="text-align: justify;">
]]></content:encoded>
					
					<wfw:commentRss>https://www.wikitechy.com/interview-questions/php/what-are-the-types-of-errors-in-php/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
	</channel>
</rss>
