<?xml version="1.0" encoding="ISO-8859-1" ?>
<rss version="2.0">
<channel>
	<title>Articles</title>
	<link>http://realcustomscripts.com/page/articles/category/development/</link>
	<pubDate>Wed, 22 Feb 2012 09:46:08 +0000</pubDate>
	<ttl>43200</ttl>
	<description>Development Articles</description>
	<item>
		<title>PHP Currency Formatting</title>
		<link>http://realcustomscripts.com/page/articles/category/development/php/php-currency-formatting-r14</link>
		<description><![CDATA[When I was creating my marketplace & advertising system, I had to quickly format the currency used instead of adding things manually<br />
so I created that function.<br />
It might not be very useful for everyone but, it came handy for me !<br />
<br />
<span style='color: #2E8B57'><a href='http://realcustomscripts.com/learn/php/php-currency-format' class='bbc_url' title=''>See Full Function here</a></span><br />
<br />
The functions is very simple and support multi data returns <br />
<br />
Single Currency format:<br />
<pre class='prettyprint'>
$cur = "GBP";
$curStuff =  getCurFormated($cur);
   echo "&lt;h2&gt; Single output&lt;/h2&gt;";
   echo "Currency Code: $curStuff&#91;0&#93;&lt;br&gt;
         Currency Sign: $curStuff&#91;1&#93;&lt;br&gt;
         Currency Title: $curStuff&#91;2&#93;&lt;br&gt;
</pre><br />
<br />
The output<br />
<p class='citation'>Quote</p><div class="blockquote"><div class='quote'>
<strong class='bbc'>Single output</strong><br />
<strong class='bbc'>Currency Code:</strong> GBP<br />
<strong class='bbc'>Currency Sign:</strong> £<br />
<strong class='bbc'>Currency Title:</strong> Great Britain Pounds<br /></div></div><br />
 <br />
<br />
<br />
Multi-formatting:<br />
<pre class='prettyprint'>
$curArray = Array( 'USD', 'GBP', 'CAD' );
      
       foreach ($curArray as $cur){
          $curStuff =  getCurFormated($cur);
          echo "&lt;h2&gt;Information about $cur&lt;/h2&gt;";
          echo "Currency Code: $curStuff&#91;0&#93;&lt;br&gt;
                Currency Sign: $curStuff&#91;1&#93;&lt;br&gt;
                Currency Title: $curStuff&#91;2&#93;&lt;br&gt;";
       }
</pre><br />
<br />
The output:<br />
<p class='citation'>Quote</p><div class="blockquote"><div class='quote'>
<strong class='bbc'>Information about USD</strong><br />
Currency Code: USD<br />
Currency Sign: $<br />
Currency Title: United Stats Dollars<br />
<br />
<strong class='bbc'>Information about GBP</strong><br />
Currency Code: GBP<br />
Currency Sign: £<br />
Currency Title: Great Britain Pounds<br />
<br />
<br />
<strong class='bbc'>Information about CAD</strong><br />
Currency Code: CAD<br />
Currency Sign: $<br />
Currency Title: Canadian Dollars<br /></div></div>]]></description>
		<pubDate>Wed, 12 Jan 2011 07:24:23 +0000</pubDate>
		<guid isPermaLink="false">5fd0b37cd7dbbb00f97ba6ce92bf5add</guid>
	</item>
	<item>
		<title>test</title>
		<link>http://realcustomscripts.com/page/articles/category/development/test-r13</link>
		<description><![CDATA[Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry's standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book. It has survived not only five centuries, but also the leap into electronic typesetting, remaining essentially unchanged. It was popularised in the 1960s with the release of Letraset sheets containing Lorem Ipsum passages, and more recently with desktop publishing software like Aldus PageMaker including versions of Lorem Ipsum.<br />
Why do we use it?<br />
<br />
It is a long established fact that a reader will be distracted by the readable content of a page when looking at its layout. The point of using Lorem Ipsum is that it has a more-or-less normal distribution of letters, as opposed to using 'Content here, content here', making it look like readable English. Many desktop publishing packages and web page editors now use Lorem Ipsum as their default model text, and a search for 'lorem ipsum' will uncover many web sites still in their infancy. Various versions have evolved over the years, sometimes by accident, sometimes on purpose (injected humour and the like).<br />
<br />
Contrary to popular belief, Lorem Ipsum is not simply random text. It has roots in a piece of classical Latin literature from 45 BC, making it over 2000 years old. Richard McClintock, a Latin professor at Hampden-Sydney College in Virginia, looked up one of the more obscure Latin words, consectetur, from a Lorem Ipsum passage, and going through the cites of the word in classical literature, discovered the undoubtable source. Lorem Ipsum comes from sections 1.10.32 and 1.10.33 of "de Finibus Bonorum et Malorum" (The Extremes of Good and Evil) by Cicero, written in 45 BC. This book is a treatise on the theory of ethics, very popular during the Renaissance. The first line of Lorem Ipsum, "Lorem ipsum dolor sit amet..", comes from a line in section 1.10.32.]]></description>
		<pubDate>Mon, 06 Dec 2010 16:18:41 +0000</pubDate>
		<guid isPermaLink="false">73278a4a86960eeb576a8fd4c9ec6997</guid>
	</item>
	<item>
		<title>Test articles</title>
		<link>http://realcustomscripts.com/page/articles/category/development/php/test-articles-r11</link>
		<description><![CDATA[PHP: Hypertext Preprocessor is a widely used, general-purpose scripting language that was originally designed for web development to produce dynamic web pages. For this purpose, PHP code is embedded into the HTML source document and interpreted by a web server with a PHP processor module, which generates the web page document. As a general-purpose programming language, PHP code is processed by an interpreter application in command-line  mode performing desired operating system operations and producing program output on its standard output channel. It may also function as a graphical application. PHP is available as a processor for most modern web servers and as a standalone interpreter on most operating systems and computing platforms.<br />
<br />
PHP was originally created by <strong class='bbc'>Rasmus Lerdorf</strong> in 1995[1][2] and has been in continuous development ever since. The main implementation of PHP is now produced by the PHP Group and serves as the de facto standard for PHP as there is no formal specification.[3] PHP is free software released under the PHP License.]]></description>
		<pubDate>Wed, 08 Sep 2010 19:59:49 +0000</pubDate>
		<guid isPermaLink="false">698d51a19d8a121ce581499d7b701668</guid>
	</item>
	<item>
		<title>IPB Applications</title>
		<link>http://realcustomscripts.com/page/articles/category/development/ipb/ipb-applications-r10</link>
		<description>This will help you create IPB 3.1.x Application</description>
		<pubDate>Wed, 08 Sep 2010 13:55:03 +0000</pubDate>
		<guid isPermaLink="false">5f93f983524def3dca464469d2cf9f3e</guid>
	</item>
</channel>
</rss>
