array() constuct get diaplay in the browser
<p>Done simple php script.which is working fine.
simple.php</p>

<pre><code>&lt;?php
$meal = array('breakfast'=&gt;'Walnut Bun','lunch'=&gt;'Cashew Nuts and White Mushrooms');
print "&lt;table&gt;\n";
print "&lt;tr&gt;&lt;th&gt;Intake Time&lt;/th&gt;&lt;th&gt;Intake Food&lt;/th&gt;&lt;/tr&gt;\n";
    foreach ($meal as $key =&gt; $value) {
            print "&lt;tr&gt;&lt;td&gt;$key&lt;/td&gt;&lt;td&gt;$value&lt;/td&gt;&lt;/tr&gt;\n";
    }
print '&lt;/table&gt;';
</code></pre>

<p>?></p>

<p>cmd# php simple.php</p>

<pre><code> &lt;table&gt;
&lt;tr&gt;&lt;th&gt;Intake Time&lt;/th&gt;&lt;th&gt;Intake Food&lt;/th&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td&gt;breakfast&lt;/td&gt;&lt;td&gt;Walnut Bun&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td&gt;lunch&lt;/td&gt;&lt;td&gt;Cashew Nuts and White Mushrooms&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;
</code></pre>

<p>But when I included the same script in the html body it is not giving expected output.</p>

<pre><code>&lt;html&gt;
&lt;head&gt;
    &lt;title&gt;table create&lt;/title&gt;
&lt;/head&gt;
&lt;body&gt;
&lt;!--
    &lt;table border="1"&gt;
        &lt;tr&gt;&lt;th&gt;Intake Time&lt;/th&gt;&lt;th&gt;Intake Food&lt;/th&gt;&lt;/tr&gt;
        &lt;tr&gt;&lt;td&gt;BreakFast&lt;/td&gt;&lt;td&gt;Bread&lt;/td&gt;&lt;/tr&gt;
    &lt;/table&gt;
--&gt;

&lt;?php
            //$meal = array('breakfast' =&gt; 'Displaying Comment','lunch' =&gt; 'Cashew Nuts and White Mushrooms');
    $meal = array('breakfast' =&gt; 'Walnut','lunch' =&gt; 'Cashew Nuts and White Mushrooms');
    print "&lt;table&gt;\n";
    print "&lt;tr&gt;&lt;th&gt;Intake Time&lt;/th&gt;&lt;th&gt;Intake Food&lt;/th&gt;&lt;/tr&gt;\n";
    foreach ($meal as $key =&gt; $value) {
        print "&lt;tr&gt;&lt;td&gt;$key&lt;/td&gt;&lt;td&gt;$value&lt;/td&gt;&lt;/tr&gt;\n";
    }
    print '&lt;/table&gt;';
?&gt;
&lt;/body&gt;
</code></pre>

<p></p>

<p>Browser is Displaying:</p>

<pre><code>'Displaying Comment','lunch' =&gt; 'Cashew Nuts and White Mushrooms'); $meal = array('breakfast' =&gt; 'Walnut','lunch' =&gt; 'Cashew Nuts and White Mushrooms'); print "\n"; print "\n"; foreach ($meal as $key =&gt; $value) { print "\n"; } print '
Intake Time Intake Food
$key    $value
'; ?&gt; 
</code></pre>

<p>Observe that browser even displaying the comment section.</p>
