<?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>Ozzy.GS &#187; 2 basamaklı rakamlar</title>
	<atom:link href="http://www.ozzy.gs/im/2-basamakli-rakamlar/feed" rel="self" type="application/rss+xml" />
	<link>http://www.ozzy.gs</link>
	<description>Ozi&#039;nin Kişisel Ağ Güncesi</description>
	<lastBuildDate>Thu, 10 Nov 2011 09:19:08 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
		<item>
		<title>PHP&#8217;de çok basamaklı rakamlar</title>
		<link>http://www.ozzy.gs/330/phpde-cok-basamakli-rakamlar.html</link>
		<comments>http://www.ozzy.gs/330/phpde-cok-basamakli-rakamlar.html#comments</comments>
		<pubDate>Fri, 26 Feb 2010 12:26:58 +0000</pubDate>
		<dc:creator>Ozzy</dc:creator>
				<category><![CDATA[Ağ Yöneticiliği]]></category>
		<category><![CDATA[2 basamaklı rakamlar]]></category>
		<category><![CDATA[her basamak için sıfır eklemek]]></category>
		<category><![CDATA[leading zero for multi digit numbers]]></category>

		<guid isPermaLink="false">http://www.ozzy.gs/?p=330</guid>
		<description><![CDATA[&#60;?php for($i=1;$i]]></description>
			<content:encoded><![CDATA[<p><code>&#60;?php for($i=1;$i<=10;$i++){echo"$i ";}?&#62;</code></p>
<p>Bu kod ile 1'den 10'a kadar sayıları yazdırabiliyoruz.</p>
<p>Bu sayıları "1 2 3 4 5 6 7 8 9 10" yerine iki basamaklı olarak yani "01 02 03 04 05 06 07 08 09 10" şeklinde yazdırmak istiyorsak <strong>sprintf</strong> komutunu kullanacağız. Örnek:</p>
<p><code>&#60;?php for($i=1;$i<=10;$i++){$x=sprintf("%02d",$i);echo"$x ";}?&#62;</code></p>
<p>sprintf("%02d",$i) tanımlamasındaki 2 sayısı basamak sayımızı belirliyor. Bunu değiştirerek sonucu görebilirsiniz.</p>
<p>Daha fazla ayrıntı için; <a href="http://www.php.net/sprintf" target="_blank">www.php.net/sprintf</a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.ozzy.gs/330/phpde-cok-basamakli-rakamlar.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

