<?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>Alphabet Program Archives - The Code Developer</title>
	<atom:link href="https://www.thecodedeveloper.com/category/alphabet-program/feed/" rel="self" type="application/rss+xml" />
	<link>https://www.thecodedeveloper.com/category/alphabet-program/</link>
	<description>The Code Developer is a Programming Blog.</description>
	<lastBuildDate>Mon, 10 Sep 2018 14:02:54 +0000</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=6.8.3</generator>
	<item>
		<title>PHP program print A to Z alphabets</title>
		<link>https://www.thecodedeveloper.com/print-alphabets/</link>
					<comments>https://www.thecodedeveloper.com/print-alphabets/#respond</comments>
		
		<dc:creator><![CDATA[Vikas Kumar]]></dc:creator>
		<pubDate>Fri, 16 Feb 2018 19:26:39 +0000</pubDate>
				<category><![CDATA[Alphabet Program]]></category>
		<category><![CDATA[PHP]]></category>
		<guid isPermaLink="false">https://www.thecodedeveloper.com/?p=2309</guid>

					<description><![CDATA[<div style="margin-bottom:20px;"><img width="640" height="499" src="https://www.thecodedeveloper.com/wp-content/uploads/2018/01/print-alphabets.png" class="attachment-post-thumbnail size-post-thumbnail wp-post-image" alt="print alphabets" decoding="async" fetchpriority="high" srcset="https://www.thecodedeveloper.com/wp-content/uploads/2018/01/print-alphabets.png 640w, https://www.thecodedeveloper.com/wp-content/uploads/2018/01/print-alphabets-442x345.png 442w" sizes="(max-width: 640px) 100vw, 640px" /></div>
<p>In this tutorial, we&#8217;re going to write a PHP program to print alphabets from A to Z. It&#8217;s quite simple code using though PHP range() Function. PHP range() Function The range() function creates an array containing a range of elements. This function returns an array of elements from low to high. Syntax PHP program print [&#8230;]</p>
<p>The post <a href="https://www.thecodedeveloper.com/print-alphabets/">PHP program print A to Z alphabets</a> appeared first on <a href="https://www.thecodedeveloper.com">The Code Developer</a>.</p>
]]></description>
										<content:encoded><![CDATA[<div style="margin-bottom:20px;"><img width="640" height="499" src="https://www.thecodedeveloper.com/wp-content/uploads/2018/01/print-alphabets.png" class="attachment-post-thumbnail size-post-thumbnail wp-post-image" alt="print alphabets" decoding="async" srcset="https://www.thecodedeveloper.com/wp-content/uploads/2018/01/print-alphabets.png 640w, https://www.thecodedeveloper.com/wp-content/uploads/2018/01/print-alphabets-442x345.png 442w" sizes="(max-width: 640px) 100vw, 640px" /></div><p>In this tutorial, we&#8217;re going to write a PHP program to <strong>print alphabets from A to Z</strong>. It&#8217;s quite simple code using though PHP <strong>range()</strong> Function.</p>
<h3>PHP range() Function</h3>
<p>The range() function creates an array containing a range of elements. This function returns an array of elements from low to high.</p>
<h3>Syntax</h3>
<pre class="brush: php; title: ; notranslate">range(low,high,step)</pre>
<h2>PHP program print alphabets from A to Z</h2>
<p>In the below code first we are going to set the range between A to Z, then looping through each alphabet using foreach() loop.</p>
<pre class="brush: php; title: ; notranslate">
&lt;?php
foreach (range('A', 'Z') as $alphabet) {
    echo $alphabet.&quot; &quot;;
}
?&gt;
</pre>
<p><strong>Output:</strong></p>
<pre class="brush: php; title: ; notranslate">
A B C D E F G H I J K L M N O P Q R S T U V W X Y Z
</pre>
<h2>PHP program print alphabets from a to z</h2>
<p>So we could write a similar program for lowercase characters in a similar way like in below example:</p>
<pre class="brush: php; title: ; notranslate">
&lt;?php
foreach (range('a', 'z') as $alphabet) {
    echo $alphabet.&quot; &quot;;
}
?&gt;
</pre>
<p><strong>Output:</strong></p>
<pre class="brush: php; title: ; notranslate">
a b c d e f g h i j k l m n o p q r s t u v w x y z
</pre>
<h2>PHP program print alphabets from Z to A in Reverse order</h2>
<p>We could print alphabets from Z to A in Reverse order like in below example:</p>
<pre class="brush: php; title: ; notranslate">
&lt;?php
foreach (range('Z', 'A') as $alphabet) {
    echo $alphabet.&quot; &quot;;
}
?&gt;
</pre>
<p><strong>Output:</strong></p>
<pre class="brush: php; title: ; notranslate">
Z Y X W V U T S R Q P O N M L K J I H G F E D C B A
</pre>
<p>The post <a href="https://www.thecodedeveloper.com/print-alphabets/">PHP program print A to Z alphabets</a> appeared first on <a href="https://www.thecodedeveloper.com">The Code Developer</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://www.thecodedeveloper.com/print-alphabets/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
	</channel>
</rss>
