<?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>Tutorial Melayu &#187; php variables</title>
	<atom:link href="http://www.tutorialmelayu.com/tag/php-variables/feed" rel="self" type="application/rss+xml" />
	<link>http://www.tutorialmelayu.com</link>
	<description></description>
	<lastBuildDate>Sun, 06 Nov 2011 12:38:46 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3</generator>
		<item>
		<title>Variables</title>
		<link>http://www.tutorialmelayu.com/web-programming/php/variables</link>
		<comments>http://www.tutorialmelayu.com/web-programming/php/variables#comments</comments>
		<pubDate>Wed, 28 Jan 2009 19:42:09 +0000</pubDate>
		<dc:creator>mdpai</dc:creator>
				<category><![CDATA[php]]></category>
		<category><![CDATA[pemboleh ubah php]]></category>
		<category><![CDATA[php variables]]></category>

		<guid isPermaLink="false">http://www.tutorialmelayu.com/?p=21</guid>
		<description><![CDATA[Variables = pemboleh ubah. Ia boleh diumpamakan sebagai sebuah bekas yang boleh diisi dengan satu benda yang kita mahu. Secara mudahnya, variable digunakan untuk menyimpan sesuatu nilai (contoh 233 atau &#8220;Hello World&#8221;). Di dalam PHP, variable mudah dikenali kerana ia bermula dengan tanda $, cthnya $var. Cuba code di bawah: &#60;?php $nama = &#34;mdpai&#34;; $umur [...]]]></description>
			<content:encoded><![CDATA[<p>Variables = pemboleh ubah. Ia boleh diumpamakan sebagai sebuah bekas yang boleh diisi dengan satu benda yang kita mahu. Secara mudahnya, variable digunakan untuk menyimpan sesuatu nilai (contoh 233 atau &#8220;Hello World&#8221;). Di dalam PHP, variable mudah dikenali kerana ia bermula dengan tanda $, cthnya $var.</p>
<p>Cuba code di bawah:</p>

<div class="wp_codebox"><table><tr id="p212"><td class="code" id="p21code2"><pre class="php" style="font-family:monospace;"><span style="color: #dfc484; font-weight: bold;">&lt;?php</span>
<span style="color: #dfc484;">$nama</span> <span style="color: #eeeeee;">=</span> <span style="color: #ff8400;">&quot;mdpai&quot;</span><span style="color: #eeeeee;">;</span>
<span style="color: #dfc484;">$umur</span> <span style="color: #eeeeee;">=</span> <span style="color: #ff8400;">22</span><span style="color: #eeeeee;">;</span>
<span style="color: #e8ed97;">echo</span> <span style="color: #ff8400;">&quot;Nama saya <span style="color: #dfc484; font-weight: bold;">$nama</span>. Umur saya <span style="color: #dfc484; font-weight: bold;">$umur</span> tahun&quot;</span><span style="color: #eeeeee;">;</span>
<span style="color: #eeeeee; font-weight: bold;">?&gt;</span></pre></td></tr></table></div>

<p><span id="more-21"></span></p>
<p>Bagaimana saya boleh menggunakan variable?</p>
<p>Mungkin ini soalan yang selalu ditanya oleh anda. Variable memang banyak digunakan di dalam PHP, terlalu banyak. Contoh yang terbaik ialah Form HTML yang mengumpulkan input dari user dan kemudian menggunakan input tersebut di page yang lain.</p>
<p><img src="http://www.tutorialmelayu.com/wp-content/uploads/2009/01/800px-php-n_logosvg1.png" alt="php-n_logosvg1" title="php-n_logosvg1" width="256" height="134" class="alignnone size-full wp-image-39" /></p>
]]></content:encoded>
			<wfw:commentRss>http://www.tutorialmelayu.com/web-programming/php/variables/feed</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
	</channel>
</rss>

