<?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>
	Comments on: PHP program to print Diamond Pattern	</title>
	<atom:link href="https://www.thecodedeveloper.com/php-program-to-print-diamond-pattern/feed/" rel="self" type="application/rss+xml" />
	<link>https://www.thecodedeveloper.com/php-program-to-print-diamond-pattern/</link>
	<description>The Code Developer is a Programming Blog.</description>
	<lastBuildDate>Wed, 10 Apr 2019 04:09:55 +0000</lastBuildDate>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=6.8.3</generator>
	<item>
		<title>
		By: Mark Collamar		</title>
		<link>https://www.thecodedeveloper.com/php-program-to-print-diamond-pattern/#comment-3053</link>

		<dc:creator><![CDATA[Mark Collamar]]></dc:creator>
		<pubDate>Wed, 10 Apr 2019 04:09:55 +0000</pubDate>
		<guid isPermaLink="false">http://www.thecodedeveloper.com/?p=632#comment-3053</guid>

					<description><![CDATA[The line of code below must be placed before the echo; I keep posting but the line was removed. so I just comment it below hopefully the admin can add it. Thanks

$total = ($temp &#062; 1 ? ((2 * $temp) - 1) : $temp);]]></description>
			<content:encoded><![CDATA[<p>The line of code below must be placed before the echo; I keep posting but the line was removed. so I just comment it below hopefully the admin can add it. Thanks</p>
<p>$total = ($temp &gt; 1 ? ((2 * $temp) &#8211; 1) : $temp);</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: Mark Collamar		</title>
		<link>https://www.thecodedeveloper.com/php-program-to-print-diamond-pattern/#comment-3052</link>

		<dc:creator><![CDATA[Mark Collamar]]></dc:creator>
		<pubDate>Wed, 10 Apr 2019 04:06:48 +0000</pubDate>
		<guid isPermaLink="false">http://www.thecodedeveloper.com/?p=632#comment-3052</guid>

					<description><![CDATA[
    &#060;?php
    $n = 8;

    if($n === 1){ die(&#034;input must be greater than 1&#034;); }

    $nn = ($n * 2);
    $m = (ceil($nn / 2) + 1);
    $temp = 0;

    for($x = 1; $x &#060;= $nn; $x++){
        $temp = (($x  1 ? ((2 * $temp) - 1) : $temp);

        echo nl2br(str_repeat(&#039;* &#160;&#039;, $total) . &quot;\r\n&quot;);
    }
    ?&#062;
]]></description>
			<content:encoded><![CDATA[<p>    &lt;?php<br />
    $n = 8;</p>
<p>    if($n === 1){ die(&quot;input must be greater than 1&quot;); }</p>
<p>    $nn = ($n * 2);<br />
    $m = (ceil($nn / 2) + 1);<br />
    $temp = 0;</p>
<p>    for($x = 1; $x &lt;= $nn; $x++){<br />
        $temp = (($x  1 ? ((2 * $temp) &#8211; 1) : $temp);</p>
<p>        echo nl2br(str_repeat(&#8216;* &nbsp;&#8216;, $total) . &#8220;\r\n&#8221;);<br />
    }<br />
    ?&gt;</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: Mark Collamar		</title>
		<link>https://www.thecodedeveloper.com/php-program-to-print-diamond-pattern/#comment-3051</link>

		<dc:creator><![CDATA[Mark Collamar]]></dc:creator>
		<pubDate>Wed, 10 Apr 2019 04:04:22 +0000</pubDate>
		<guid isPermaLink="false">http://www.thecodedeveloper.com/?p=632#comment-3051</guid>

					<description><![CDATA[
    &#060;?php
    $n = 8;

    if($n === 1){ die(&#034;input must be greater than 1&#034;); }

    $nn = ($n * 2);
    $m = (ceil($nn / 2) + 1);
    $temp = 0;

    for($x = 1; $x &#060;= $nn; $x++){
        $temp = (($x  1 ? ((2 * $temp) - 1) : $temp);

        echo nl2br(str_repeat(&#039;* &#160;&#039;, $y) . &quot;\r\n&quot;);
    }
    ?&#062;
]]></description>
			<content:encoded><![CDATA[<p>    &lt;?php<br />
    $n = 8;</p>
<p>    if($n === 1){ die(&quot;input must be greater than 1&quot;); }</p>
<p>    $nn = ($n * 2);<br />
    $m = (ceil($nn / 2) + 1);<br />
    $temp = 0;</p>
<p>    for($x = 1; $x &lt;= $nn; $x++){<br />
        $temp = (($x  1 ? ((2 * $temp) &#8211; 1) : $temp);</p>
<p>        echo nl2br(str_repeat(&#8216;* &nbsp;&#8216;, $y) . &#8220;\r\n&#8221;);<br />
    }<br />
    ?&gt;</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: Mark Collamar		</title>
		<link>https://www.thecodedeveloper.com/php-program-to-print-diamond-pattern/#comment-3050</link>

		<dc:creator><![CDATA[Mark Collamar]]></dc:creator>
		<pubDate>Wed, 10 Apr 2019 04:01:04 +0000</pubDate>
		<guid isPermaLink="false">http://www.thecodedeveloper.com/?p=632#comment-3050</guid>

					<description><![CDATA[Another way but same output.


    &#060;?php
    $n = 8;

    if($n === 1){ die(&#034;input must be greater than 1&#034;); }

    $nn = ($n * 2);
    $m = (ceil($nn / 2) + 1);
    $temp = 0;

    for($x = 1; $x &#060;= $nn; $x++){
        $temp = ($x  1 ? ((2 * $temp) - 1) : $temp;

        echo str_repeat(&#039;* &#160;&#039;, $y) . &#039;&#039;;
    }
    ?&#062;
]]></description>
			<content:encoded><![CDATA[<p>Another way but same output.</p>
<p>    &lt;?php<br />
    $n = 8;</p>
<p>    if($n === 1){ die(&quot;input must be greater than 1&quot;); }</p>
<p>    $nn = ($n * 2);<br />
    $m = (ceil($nn / 2) + 1);<br />
    $temp = 0;</p>
<p>    for($x = 1; $x &lt;= $nn; $x++){<br />
        $temp = ($x  1 ? ((2 * $temp) &#8211; 1) : $temp;</p>
<p>        echo str_repeat(&#8216;* &nbsp;&#8216;, $y) . &#8221;;<br />
    }<br />
    ?&gt;</p>
]]></content:encoded>
		
			</item>
	</channel>
</rss>
