<?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>PHP Reference Book Blog &#187; Samples</title>
	<atom:link href="http://www.phpreferencebook.com/category/samples/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.phpreferencebook.com</link>
	<description>PHP Reference: Beginner to Intermediate PHP5</description>
	<lastBuildDate>Sat, 03 Jul 2010 04:04:31 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=abc</generator>
		<item>
		<title>PHP &amp; Ampersand: Passing by Reference</title>
		<link>http://www.phpreferencebook.com/samples/php-pass-by-reference/</link>
		<comments>http://www.phpreferencebook.com/samples/php-pass-by-reference/#comments</comments>
		<pubDate>Sun, 01 Mar 2009 00:04:25 +0000</pubDate>
		<dc:creator>Mario Lurig</dc:creator>
				<category><![CDATA[Samples]]></category>
		<category><![CDATA[ampersand]]></category>
		<category><![CDATA[functions]]></category>
		<category><![CDATA[tip]]></category>

		<guid isPermaLink="false">http://www.phpreferencebook.com/?p=165</guid>
		<description><![CDATA[The following PHP Reference excerpt is from pages 20-21. &#38; &#8211; Pass by Reference References allow two variables to refer to the same content. In other words, a variable points to its content (rather than becoming that content). Passing by reference allows two variables to point to the same content under different names. The ampersand [...]]]></description>
			<content:encoded><![CDATA[<p>The following <a href="http://www.phpreferencebook.com/">PHP Reference</a> excerpt is from pages 20-21.</p>
<p style="background: #000000 none repeat scroll 0% 0%; margin-bottom: 0.07in;" lang="en-US"><span style="color: #ffffff;"><span style="font-family: Palatino Linotype,serif;">&amp; &#8211; Pass by Reference</span></span></p>
<p style="margin-bottom: 0.07in;" lang="en-US"><span style="color: #000000;"><span style="font-family: Palatino Linotype,serif;">References allow two variables to refer to the same content. In other words, a variable points to its content (rather than becoming that content). Passing by reference allows two variables to point to the same content under different names. The ampersand ( &amp; ) is placed before the variable to be referenced.</span></span></p>
<p style="margin-bottom: 0.07in;" lang="en-US"><span style="color: #000000;"><span style="font-family: Palatino Linotype,serif;"><em>Examples:</em></span></span></p>

<div class="wp_syntax"><div class="code"><pre class="php" style="font-family:monospace;"><span style="color: #000088;">$a</span> <span style="color: #339933;">=</span> <span style="color: #cc66cc;">1</span><span style="color: #339933;">;</span>
<span style="color: #000088;">$b</span> <span style="color: #339933;">=</span> <span style="color: #339933;">&amp;</span><span style="color: #000088;">$a</span><span style="color: #339933;">;</span> <span style="color: #666666; font-style: italic;">// $b references the same value as $a, currently 1</span>
<span style="color: #000088;">$b</span> <span style="color: #339933;">=</span> <span style="color: #000088;">$b</span> <span style="color: #339933;">+</span> <span style="color: #cc66cc;">1</span><span style="color: #339933;">;</span> <span style="color: #666666; font-style: italic;">// 1 is added to $b, which effects $a the same way</span>
<span style="color: #b1b100;">echo</span> <span style="color: #0000ff;">&quot;b is equal to <span style="color: #006699; font-weight: bold;">$b</span>, and a is equal to <span style="color: #006699; font-weight: bold;">$a</span>&quot;</span><span style="color: #339933;">;</span></pre></div></div>

<pre style="background: #c0c0c0 none repeat scroll 0% 0%; margin-bottom: 0.07in; font-style: normal;" lang="en-US"><span style="color: #000000;"><span style="font-family: Courier New,monospace;">b is equal to 2, and a is equal to 2</span></span></pre>
<p style="margin-bottom: 0.07in;" align="center"><span style="font-family: Symbol;"></span></p>
<p style="margin-bottom: 0.07in;" lang="en-US"><span style="color: #000000;"><span style="font-family: Palatino Linotype,serif;">Use this for functions when you wish to simply alter the original variable and return it again to the same variable name with its new value assigned.</span></span></p>

<div class="wp_syntax"><div class="code"><pre class="php" style="font-family:monospace;"><span style="color: #000000; font-weight: bold;">function</span> add<span style="color: #009900;">&#40;</span><span style="color: #339933;">&amp;</span><span style="color: #000088;">$var</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#123;</span> <span style="color: #666666; font-style: italic;">// The &amp;amp; is before the argument $var</span>
<span style="color: #000088;">$var</span><span style="color: #339933;">++;</span>
<span style="color: #009900;">&#125;</span>
<span style="color: #000088;">$a</span> <span style="color: #339933;">=</span> <span style="color: #cc66cc;">1</span><span style="color: #339933;">;</span>
<span style="color: #000088;">$b</span> <span style="color: #339933;">=</span> <span style="color: #cc66cc;">10</span><span style="color: #339933;">;</span>
add<span style="color: #009900;">&#40;</span><span style="color: #000088;">$a</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
<span style="color: #b1b100;">echo</span> <span style="color: #0000ff;">&quot;a is <span style="color: #006699; font-weight: bold;">$a</span>,&quot;</span><span style="color: #339933;">;</span>
add<span style="color: #009900;">&#40;</span><span style="color: #000088;">$b</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
<span style="color: #b1b100;">echo</span> <span style="color: #0000ff;">&quot; a is <span style="color: #006699; font-weight: bold;">$a</span>, and b is <span style="color: #006699; font-weight: bold;">$b</span>&quot;</span><span style="color: #339933;">;</span> <span style="color: #666666; font-style: italic;">// Note: $a and $b are NOT referenced</span></pre></div></div>

<pre style="background: #c0c0c0 none repeat scroll 0% 0%; margin-bottom: 0.07in;">a is 2, a is 2, and b is 11</pre>
<p style="margin-bottom: 0.07in;" lang="en-US"><span style="color: #000000;"><span style="font-family: Palatino Linotype,serif;">You can also do this to alter an array with foreach:</span></span></p>

<div class="wp_syntax"><div class="code"><pre class="php" style="font-family:monospace;"><span style="color: #000088;">$array</span> <span style="color: #339933;">=</span> <span style="color: #990000;">array</span><span style="color: #009900;">&#40;</span><span style="color: #cc66cc;">1</span><span style="color: #339933;">,</span><span style="color: #cc66cc;">2</span><span style="color: #339933;">,</span><span style="color: #cc66cc;">3</span><span style="color: #339933;">,</span><span style="color: #cc66cc;">4</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
<span style="color: #b1b100;">foreach</span> <span style="color: #009900;">&#40;</span><span style="color: #000088;">$array</span> <span style="color: #b1b100;">as</span> <span style="color: #339933;">&amp;</span><span style="color: #000088;">$value</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#123;</span>
<span style="color: #000088;">$value</span> <span style="color: #339933;">=</span> <span style="color: #000088;">$value</span> <span style="color: #339933;">+</span> <span style="color: #cc66cc;">10</span><span style="color: #339933;">;</span>
<span style="color: #009900;">&#125;</span>
<span style="color: #990000;">unset</span> <span style="color: #009900;">&#40;</span><span style="color: #000088;">$value</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span> <span style="color: #666666; font-style: italic;">// Must be included, $value remains after foreach loop</span>
<span style="color: #990000;">print_r</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$array</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span></pre></div></div>

<pre style="background: #c0c0c0 none repeat scroll 0% 0%; margin-bottom: 0.07in;">Array ( [0] =&gt; 11 [1] =&gt; 12 [2] =&gt; 13 [3] =&gt; 14 )</pre>
<p>
<hr width='50%' />
<p>What tricks do you have for using the ampersand in PHP to pass by reference?<br />
Leave them in the comments below!</p>
]]></content:encoded>
			<wfw:commentRss>http://www.phpreferencebook.com/samples/php-pass-by-reference/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>Equal Sign in PHP: Equality and Not Equals</title>
		<link>http://www.phpreferencebook.com/samples/equal-sign-operators/</link>
		<comments>http://www.phpreferencebook.com/samples/equal-sign-operators/#comments</comments>
		<pubDate>Wed, 25 Feb 2009 17:53:57 +0000</pubDate>
		<dc:creator>Mario Lurig</dc:creator>
				<category><![CDATA[Samples]]></category>
		<category><![CDATA[equals sign]]></category>

		<guid isPermaLink="false">http://www.phpreferencebook.com/?p=153</guid>
		<description><![CDATA[The PHP equal sign can be used to assign the value of variable as well as evaluate a variable as part of an if-else statement or other conditional statement. However, there are subtle differences that are important for ensuring your PHP code is as accurate as possible. The following samples are from page 22. The [...]]]></description>
			<content:encoded><![CDATA[<p>The PHP equal sign can be used to assign the value of variable as well as evaluate a variable as part of an if-else statement or other conditional statement. However, there are subtle differences that are important for ensuring your PHP code is as accurate as possible. The following samples are from page 22.</p>
<p style="background: #000000 none repeat scroll 0% 0%; margin-bottom: 0.07in;" lang="en-US"><span style="color: #ffffff;">The Equal Sign</span></p>
<p style="margin-bottom: 0.07in;" lang="en-US"><span style="color: #000000;"><span style="font-family: Palatino Linotype,serif;">Assignment ( = ): Assigns the value on the right to the variable on the left<br />
Equality ( == ): Checks if the left and right values are equal<br />
Identical ( === ): Checks if the left and right values are equal AND identical</span></span></p>
<p style="margin-bottom: 0.07in;" lang="en-US">
<p style="margin-bottom: 0.07in;" lang="en-US"><span style="color: #000000;"><span style="font-family: Palatino Linotype,serif;"><em>Example:</em></span></span></p>

<div class="wp_syntax"><div class="code"><pre class="php" style="font-family:monospace;"><span style="color: #000088;">$a</span> <span style="color: #339933;">=</span> <span style="color: #cc66cc;">1</span><span style="color: #339933;">;</span> <span style="color: #666666; font-style: italic;">// Sets the value of $a as 1 by assignment</span>
<span style="color: #000088;">$b</span> <span style="color: #339933;">=</span> <span style="color: #009900; font-weight: bold;">TRUE</span><span style="color: #339933;">;</span> <span style="color: #666666; font-style: italic;">// Sets the value of $b to the boolean TRUE</span>
<span style="color: #b1b100;">if</span> <span style="color: #009900;">&#40;</span><span style="color: #000088;">$a</span> <span style="color: #339933;">==</span> <span style="color: #000088;">$b</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#123;</span>
<span style="color: #b1b100;">echo</span> <span style="color: #0000ff;">'a is equal to b.'</span><span style="color: #339933;">;</span>
<span style="color: #009900;">&#125;</span>
<span style="color: #b1b100;">if</span> <span style="color: #009900;">&#40;</span><span style="color: #000088;">$a</span> <span style="color: #339933;">===</span> <span style="color: #000088;">$b</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#123;</span>
<span style="color: #b1b100;">echo</span> <span style="color: #0000ff;">'a is identical and equal to b.'</span><span style="color: #339933;">;</span>
<span style="color: #009900;">&#125;</span></pre></div></div>

<pre style="background: #c0c0c0 none repeat scroll 0% 0%; margin-bottom: 0.07in; font-style: normal;" lang="en-US"><span style="color: #000000;"><span style="font-family: Courier New,monospace;">a is equal to b. </span></span></pre>
<p style="margin-bottom: 0.07in; font-style: normal;" lang="en-US">
<p style="background: #000000 none repeat scroll 0% 0%; margin-bottom: 0.07in;" lang="en-US"><span style="color: #ffffff;">Not ( ! ), Not Equal to ( != ), Not Identical to ( !== )</span></p>
<p style="margin-bottom: 0.07in;"><span style="color: #000000;"><span style="font-family: Palatino Linotype,serif;"><span lang="en-US">Used in conditional statements to evaluate as true a FALSE result of an </span></span></span><span style="color: #000000;"><span style="font-family: Palatino Linotype,serif;"><span lang="en-US"><em>expression</em></span></span></span><span style="color: #000000;"><span style="font-family: Palatino Linotype,serif;"><span lang="en-US"><span style="font-style: normal;"> or if a value is NOT equal to the second value.</span></span></span></span></p>
<p style="margin-bottom: 0.07in;" lang="en-US"><span style="color: #000000;"><span style="font-family: Palatino Linotype,serif;"><em>Example:</em></span></span></p>

<div class="wp_syntax"><div class="code"><pre class="php" style="font-family:monospace;"><span style="color: #000088;">$a</span> <span style="color: #339933;">=</span> <span style="color: #cc66cc;">1</span><span style="color: #339933;">;</span>
<span style="color: #b1b100;">if</span> <span style="color: #009900;">&#40;</span><span style="color: #339933;">!</span><span style="color: #990000;">isset</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$a</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#123;</span> <span style="color: #666666; font-style: italic;">// If the variable $a is NOT set then...</span>
<span style="color: #b1b100;">echo</span> <span style="color: #0000ff;">'$a is not set'</span><span style="color: #339933;">;</span> <span style="color: #666666; font-style: italic;">// The expression is TRUE if it is NOT set</span>
<span style="color: #666666; font-style: italic;">// Since there is no ELSE statement, nothing is displayed</span>
<span style="color: #009900;">&#125;</span>
<span style="color: #b1b100;">if</span> <span style="color: #009900;">&#40;</span><span style="color: #000088;">$a</span> <span style="color: #339933;">!=</span> <span style="color: #cc66cc;">0</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#123;</span>
<span style="color: #b1b100;">echo</span> <span style="color: #0000ff;">'$a does not equal zero'</span><span style="color: #339933;">;</span>
<span style="color: #009900;">&#125;</span></pre></div></div>

<pre style="background: #c0c0c0 none repeat scroll 0% 0%; margin-bottom: 0.07in; font-style: normal;" lang="en-US"><span style="color: #000000;"><span style="font-family: Courier New,monospace;">$a does not equal zero</span></span></pre>
<p style="margin-bottom: 0.07in;"><span style="color: #000000;"><span style="font-family: Palatino Linotype,serif;"><span lang="en-US"><em></em></span></span></span></p>
<p style="margin-bottom: 0.07in; font-style: normal;" lang="en-US">
]]></content:encoded>
			<wfw:commentRss>http://www.phpreferencebook.com/samples/equal-sign-operators/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Regular Expression Syntax (RegEx) Sample</title>
		<link>http://www.phpreferencebook.com/samples/regular-expression-syntax/</link>
		<comments>http://www.phpreferencebook.com/samples/regular-expression-syntax/#comments</comments>
		<pubDate>Thu, 05 Feb 2009 05:03:46 +0000</pubDate>
		<dc:creator>Mario Lurig</dc:creator>
				<category><![CDATA[Samples]]></category>
		<category><![CDATA[PCRE]]></category>
		<category><![CDATA[PERL]]></category>
		<category><![CDATA[regular expressions]]></category>
		<category><![CDATA[syntax]]></category>

		<guid isPermaLink="false">http://www.phpreferencebook.com/?p=111</guid>
		<description><![CDATA[The handy Regular Expression Syntax from the PHP book (pages 149-150). Check out the free PDF if you don&#8217;t have it already! Regular Expression Syntax ^ – Start of string $ – End of string . – Any single character ( ) – Group of expressions [] – Item range ( e.g. [afg] means a, [...]]]></description>
			<content:encoded><![CDATA[<p>The handy Regular Expression Syntax from the <a href="http://www.phpreferencebook.com">PHP book</a> (pages 149-150). Check out the <a href="http://www.phpreferencebook.com/pdf">free PDF</a> if you don&#8217;t have it already!</p>
<h3>Regular Expression Syntax</h3>
<p>^ – Start of string<br />
$ – End of string<br />
. – Any single character<br />
( ) – Group of expressions<br />
[] – Item range ( e.g. [afg] means a, f, or g )<br />
[^] – Items not in range ( e.g. [^cde] means not c, d, or e )<br />
- (dash) – character range within an item range ( e.g. [a-z] means a through z )<br />
| (pipe) – Logical or ( e.g. (a|b) means a or b )<br />
? – Zero or one of preceding character/item range<br />
* – Zero or more of preceding character/item range<br />
+ – One or more of preceding character/item range<br />
{integer} – Exactly integer of preceding character/item range ( e.g. a{2} )<br />
{integer,} – Integer or more of preceding character/item range ( e.g. a{2,} )<br />
{integer,integer} – From integer to integer (e.g. a{2,4} means 2 to four of a )<br />
 – Escape character<br />
[:punct:] – Any punctuation<br />
[:space:] – Any space character<br />
[:blank:] – Any space or tab<br />
[:digit:] – Any digit: 0 through 9<br />
[:alpha:] – All letters: a-z and A-Z<br />
[:alnum:] – All digits and letters: 0-9, a-z, and A-Z<br />
[:xdigit:] – Hexadecimal digit<br />
[:print:] – Any printable character<br />
[:upper:] – All uppercase letters: A-Z<br />
[:lower:] – All lowercase letters: a-z</p>
<h3>PERL Compatible (PCRE) only ( preg_*() )</h3>
<p>/ &#8211; delimiter before and after the expression</p>
<h4>Character classes:</h4>
<p>\c – Control character<br />
\s – Whitespace<br />
\S – Not whitespace<br />
\d – Digit (0-9)<br />
\D – Not a digit<br />
\w – Letter, Digit, Underscore [a-zA-Z0-9_]<br />
\W – Not a letter<br />
\x – Hexadecimal digit<br />
\O – Octal digit</p>
<h4>Modifiers:</h4>
<p>i – Case-insensitive<br />
s – Period matches newline<br />
m – ^ and $ match lines<br />
U – Ungreedy matching<br />
e – Evaluate replacement<br />
x – Pattern over several lines</p>
]]></content:encoded>
			<wfw:commentRss>http://www.phpreferencebook.com/samples/regular-expression-syntax/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Sprintf() Function Sample</title>
		<link>http://www.phpreferencebook.com/samples/sprintf-function/</link>
		<comments>http://www.phpreferencebook.com/samples/sprintf-function/#comments</comments>
		<pubDate>Tue, 22 Jul 2008 06:42:49 +0000</pubDate>
		<dc:creator>Mario Lurig</dc:creator>
				<category><![CDATA[Samples]]></category>
		<category><![CDATA[easy]]></category>
		<category><![CDATA[Function]]></category>
		<category><![CDATA[php]]></category>
		<category><![CDATA[php5]]></category>
		<category><![CDATA[sample]]></category>
		<category><![CDATA[simple]]></category>
		<category><![CDATA[sprintf]]></category>

		<guid isPermaLink="false">http://www.phpreferencebook.com/?p=14</guid>
		<description><![CDATA[sprintf(formatting, inputs [, ...inputs...] Accepts multiple inputs to be used when specified in formatting formatting – $string, specific formatting string, explained below inputs – $scalar(s) to be formatted Returns a formatted string formatting, using the inputs to dynamically input their values into the formatted string using a preset set of rules, specified below. The following [...]]]></description>
			<content:encoded><![CDATA[<p class="western" style="background: #000000 none repeat scroll 0%; margin-bottom: 0.07in; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial;"><span style="color: #ffffff; font-size: medium;"><span style="font-family: Palatino Linotype,serif;"><span lang="en-US">sprintf(</span></span><span style="font-family: Palatino Linotype,serif;"><span lang="en-US"><em>formatting</em></span></span><span style="font-family: Palatino Linotype,serif;"><span lang="en-US"><span style="font-style: normal;">, </span></span></span><span style="font-family: Palatino Linotype,serif;"><span lang="en-US"><em>inputs</em></span></span><span style="font-family: Palatino Linotype,serif;"><span lang="en-US"><span style="font-style: normal;"> [, ...</span></span></span><span style="font-family: Palatino Linotype,serif;"><span lang="en-US"><em>inputs</em></span></span><span style="font-family: Palatino Linotype,serif;"><span lang="en-US"><span style="font-style: normal;">...]</span></span></span></span></p>
<p class="western" style="margin-bottom: 0.07in;"><span style="font-size: medium;"><span style="color: #000000;"><span style="font-family: Palatino Linotype,serif;"><span lang="en-US"><em>Accepts multiple </em></span></span></span><span style="color: #000000;"><span style="font-family: Palatino Linotype,serif;"><span lang="en-US"><em><span>inputs to be used when specified in formatting</span></em></span></span></span></span></p>
<p class="western" style="margin-bottom: 0.07in;"><span style="font-size: medium;"><span style="color: #000000;"><span style="font-family: Palatino Linotype,serif;"><span lang="en-US"><em>formatting</em></span></span></span><span style="color: #000000;"><span style="font-family: Palatino Linotype,serif;"><span lang="en-US"><span style="font-style: normal;"> – </span></span></span></span><span style="color: #000000;"><span style="font-family: Palatino Linotype,serif;"><span lang="en-US"><span style="font-style: normal;"><strong>$string</strong></span></span></span></span><span style="color: #000000;"><span style="font-family: Palatino Linotype,serif;"><span lang="en-US"><span style="font-style: normal;">, specific formatting string, explained below<br />
</span></span></span></span><span style="color: #000000;"><span style="font-family: Palatino Linotype,serif;"><span lang="en-US"><em>inputs </em></span></span></span><span style="color: #000000;"><span style="font-family: Palatino Linotype,serif;"><span lang="en-US"><span style="font-style: normal;">– </span></span></span></span><span style="color: #000000;"><span style="font-family: Palatino Linotype,serif;"><span lang="en-US"><span style="font-style: normal;"><strong>$scalar</strong></span></span></span></span><span style="color: #000000;"><span style="font-family: Palatino Linotype,serif;"><span lang="en-US"><span style="font-style: normal;"><span>(s) to be formatted</span></span></span></span></span></span></p>
<p class="western" style="margin-bottom: 0.07in;"><span style="font-size: medium;"><span style="color: #000000;"><span style="font-family: Palatino Linotype,serif;"><span lang="en-US"><span style="font-style: normal;"><span>Returns a formatted string </span></span></span></span></span><span style="color: #000000;"><span style="font-family: Palatino Linotype,serif;"><span lang="en-US"><em><span>formatting</span></em></span></span></span><span style="color: #000000;"><span style="font-family: Palatino Linotype,serif;"><span lang="en-US"><span style="font-style: normal;"><span>, using the </span></span></span></span></span><span style="color: #000000;"><span style="font-family: Palatino Linotype,serif;"><span lang="en-US"><em><span>inputs</span></em></span></span></span><span style="color: #000000;"><span style="font-family: Palatino Linotype,serif;"><span lang="en-US"><span style="font-style: normal;"><span> to dynamically input their values into the formatted string using a preset set of rules, specified below.</span></span></span></span></span></span></p>
<p class="western" style="margin-bottom: 0.07in;"><span style="font-size: medium;"><span style="color: #000000;"><span style="font-family: Palatino Linotype,serif;"><span lang="en-US"><span style="font-style: normal;"><span>The following is the available nomenclature for the </span></span></span></span></span><span style="color: #000000;"><span style="font-family: Palatino Linotype,serif;"><span lang="en-US"><em><span>formatting</span></em></span></span></span><span style="color: #000000;"><span style="font-family: Palatino Linotype,serif;"><span lang="en-US"><span style="font-style: normal;"><span> input.</span></span></span></span></span></span></p>
<hr />
<p class="western" style="margin-bottom: 0.07in;"><span style="font-size: medium;"><span style="color: #000000;"><span style="font-family: Palatino Linotype,serif;"><span lang="en-US"><span style="font-style: normal;"><span>Every time an input is expected to be used and evaluated as part of the formatted string, it is preceded by a percent sign ( % ), followed by the specifiers/rules:<br />
</span></span></span></span></span><span style="color: #000000;"><span style="font-family: Palatino Linotype,serif;"><span lang="en-US"><em><strong>Note:</strong></em></span></span></span><span style="color: #000000;"><span style="font-family: Palatino Linotype,serif;"><span lang="en-US"><em><span> All specifiers, excluding the </span></em></span></span></span><span style="color: #000000;"><span style="font-family: Palatino Linotype,serif;"><span lang="en-US"><em><strong>type</strong></em></span></span></span><span style="color: #000000;"><span style="font-family: Palatino Linotype,serif;"><span lang="en-US"><em><span> specifier, are optional.</span></em></span></span></span></span></p>
<ul>
<li>
<p class="western" style="margin-bottom: 0.07in;"><span style="font-size: medium;"><span style="color: #000000;"><span style="font-family: Palatino Linotype,serif;"><span lang="en-US"><span style="font-style: normal;"><span>A </span></span></span></span></span><span style="color: #000000;"><span style="font-family: Palatino Linotype,serif;"><span lang="en-US"><span style="font-style: normal;"><strong>sign</strong></span></span></span></span><span style="color: #000000;"><span style="font-family: Palatino Linotype,serif;"><span lang="en-US"><span style="font-style: normal;"><span> specifier. Placing a plus sign ( + ) forces negative AND positive 	signs to be visible (only negative values are specified by default).</span></span></span></span></span></span></p>
</li>
<li>
<p class="western" style="margin-bottom: 0.07in;"><span style="font-size: medium;"><span style="color: #000000;"><span style="font-family: Palatino Linotype,serif;"><span lang="en-US"><span style="font-style: normal;"><span>A </span></span></span></span></span><span style="color: #000000;"><span style="font-family: Palatino Linotype,serif;"><span lang="en-US"><span style="font-style: normal;"><strong>padding</strong></span></span></span></span><span style="color: #000000;"><span style="font-family: Palatino Linotype,serif;"><span lang="en-US"><span style="font-style: normal;"><span> specifier. The default is a space, and does not need to be 	specified. A zero ( 0 ) can be used as well without any secondary 	notation. If any other character is to be used, it should be 	preceded with a single quote ( &#8216; ).</span></span></span></span></span></span></p>
</li>
<li>
<p class="western" style="margin-bottom: 0.07in;"><span style="font-size: medium;"><span style="color: #000000;"><span style="font-family: Palatino Linotype,serif;"><span lang="en-US"><span style="font-style: normal;"><span>An </span></span></span></span></span><span style="color: #000000;"><span style="font-family: Palatino Linotype,serif;"><span lang="en-US"><span style="font-style: normal;"><strong>alignment</strong></span></span></span></span><span style="color: #000000;"><span style="font-family: Palatino Linotype,serif;"><span lang="en-US"><span style="font-style: normal;"><span> specifier. The default is right-justified (thus padding is placed on 	the left of the string). Placing a dash/subtract ( &#8211; ) will set it 	to left-justified.</span></span></span></span></span></span></p>
</li>
<li>
<p class="western" style="margin-bottom: 0.07in;"><span style="font-size: medium;"><span style="color: #000000;"><span style="font-family: Palatino Linotype,serif;"><span lang="en-US"><span style="font-style: normal;"><span>A </span></span></span></span></span><span style="color: #000000;"><span style="font-family: Palatino Linotype,serif;"><span lang="en-US"><span style="font-style: normal;"><strong>width</strong></span></span></span></span><span style="color: #000000;"><span style="font-family: Palatino Linotype,serif;"><span lang="en-US"><span style="font-style: normal;"><span> specifier. This integer determines the minimum length in characters 	the output should be. When combined with padding, the specified 	width minus the input&#8217;s length determines the number of padded 	characters that will be added. </span></span></span></span></span></span></p>
</li>
<li>
<p class="western" style="margin-bottom: 0.07in;"><span style="font-size: medium;"><span style="color: #000000;"><span style="font-family: Palatino Linotype,serif;"><span lang="en-US"><span style="font-style: normal;"><span>A </span></span></span></span></span><span style="color: #000000;"><span style="font-family: Palatino Linotype,serif;"><span lang="en-US"><span style="font-style: normal;"><strong>precision </strong></span></span></span></span><span style="color: #000000;"><span style="font-family: Palatino Linotype,serif;"><span lang="en-US"><span style="font-style: normal;"><span>specifier. 	A period ( . ) followed by an integer, sets the number of decimal 	places that should be output for a float. If used on a string, it 	sets a maximum character limit for the output.</span></span></span></span></span></span></p>
</li>
<li>
<p class="western" style="margin-bottom: 0.07in;"><span style="font-size: medium;"><span style="color: #000000;"><span style="font-family: Palatino Linotype,serif;"><span lang="en-US"><span style="font-style: normal;"><span>A </span></span></span></span></span><span style="color: #000000;"><span style="font-family: Palatino Linotype,serif;"><span lang="en-US"><span style="font-style: normal;"><strong>type</strong></span></span></span></span><span style="color: #000000;"><span style="font-family: Palatino Linotype,serif;"><span lang="en-US"><span style="font-style: normal;"><span> specifier:</span></span></span></span></span></span></p>
<ul>
<li>
<p class="western" style="margin-bottom: 0.07in;"><span style="font-size: medium;"><span style="color: #000000;"><span style="font-family: Palatino Linotype,serif;"><span lang="en-US"><em><span>%</span></em></span></span></span><span style="color: #000000;"><span style="font-family: Palatino Linotype,serif;"><span lang="en-US"><span style="font-style: normal;"><span> &#8211; a literal percent sign, thus would be written %% to display a 		percent sign in the formatting string</span></span></span></span></span></span></p>
</li>
<li>
<p class="western" style="margin-bottom: 0.07in;"><span style="font-size: medium;"><span style="font-family: Palatino Linotype,serif;"><em>b</em></span><span style="font-family: Palatino Linotype,serif;"> – the input should be an integer, a binary number is the output. </span></span></p>
</li>
<li>
<p class="western"><span style="font-size: medium;"><span style="font-family: Palatino Linotype,serif;"><em>c</em></span><span style="font-family: Palatino Linotype,serif;"> &#8211; the input should be an integer between 0-255, representing the 		ASCII byte-value. The character represented is output.</span></span></p>
</li>
<li>
<p class="western"><span style="font-size: medium;"><span style="font-family: Palatino Linotype,serif;"><em>d</em></span><span style="font-family: Palatino Linotype,serif;"> – the input should be an integer.</span></span></p>
</li>
<li>
<p class="western"><span style="font-size: medium;"><span style="font-family: Palatino Linotype,serif;"><em>e</em></span><span style="font-family: Palatino Linotype,serif;"> – the input is scientific notation.</span></span></p>
</li>
<li>
<p class="western"><span style="font-size: medium;"><span style="font-family: Palatino Linotype,serif;"><em>u</em></span><span style="font-family: Palatino Linotype,serif;"> – the input is an unsigned decimal number. </span></span></p>
</li>
<li>
<p class="western"><span style="font-size: medium;"><span style="font-family: Palatino Linotype,serif;"><em>f</em></span><span style="font-family: Palatino Linotype,serif;"> – the input is a float (locale aware). </span></span></p>
</li>
<li>
<p class="western"><span style="font-size: medium;"><span style="font-family: Palatino Linotype,serif;"><em>F</em></span><span style="font-family: Palatino Linotype,serif;"> &#8211; the input is a float (not locale aware).</span></span></p>
</li>
<li>
<p class="western"><span style="font-size: medium;"><span style="font-family: Palatino Linotype,serif;"><em>o</em></span><span style="font-family: Palatino Linotype,serif;"> – the input is an integer, an octal number is the output. </span></span></p>
</li>
<li>
<p class="western"><span style="font-size: medium;"><span style="font-family: Palatino Linotype,serif;"><em>s</em></span><span style="font-family: Palatino Linotype,serif;"> – the input is a string.</span></span></p>
</li>
<li>
<p class="western"><span style="font-size: medium;"><span style="font-family: Palatino Linotype,serif;"><em>x</em></span><span style="font-family: Palatino Linotype,serif;"> &#8211; the input is an integer, a hexadecimal number is the output  		(with lowercase letters). </span></span></p>
</li>
<li>
<p class="western"><span style="font-size: medium;"><span style="font-family: Palatino Linotype,serif;"><em>X</em></span><span style="font-family: Palatino Linotype,serif;"> &#8211; the input is an integer, a hexadecimal number is the output  		(with uppercase letters). </span></span></p>
</li>
</ul>
</li>
</ul>
<p class="western" style="margin-bottom: 0.07in;" lang="en-US"><span style="color: #000000;"><span style="font-family: Palatino Linotype,serif;"><span style="font-size: medium;"><em>Examples:</em></span></span></span></p>
<p class="western" style="margin-bottom: 0.07in; font-style: normal;" lang="en-US"><span style="color: #000000;"><span style="font-family: Palatino Linotype,serif;"><span style="font-size: medium;">Basic substitution, no optional specifiers</span></span></span></p>
<p class="western" style="margin-bottom: 0.07in;" lang="en-US"><span style="color: #000000;"><span style="font-family: Courier New,monospace;"><span style="font-size: medium;">$string = &#8216;cat&#8217;;<br />
$integer = 10;<br />
echo sprintf(&#8220;I have %d %s(s)&#8221;, $integer, $string);</span></span></span></p>
<pre style="background: #c0c0c0 none repeat scroll 0%; margin-bottom: 0.07in; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial; font-style: normal;" lang="en-US"><span style="color: #000000;"><span style="font-family: Courier New,monospace;"><span style="font-size: medium;">I have 10 cat(s)</span></span></span></pre>
<p class="western" style="margin-bottom: 0.07in; font-style: normal;" lang="en-US"><span style="color: #000000;"><span style="font-family: Palatino Linotype,serif;"><span style="font-size: medium;">Basic substitution, type specification automatic adjustments</span></span></span></p>
<p class="western" style="margin-bottom: 0.07in;" lang="en-US"><span style="color: #000000;"><span style="font-family: Courier New,monospace;"><span style="font-size: medium;">$string = &#8216;cat&#8217;;<br />
$string2 = &#8217;10 blah&#8217;;<br />
echo sprintf(&#8220;I have %d %s(s)&#8221;, $string2, $string);</span></span></span></p>
<pre style="background: #c0c0c0 none repeat scroll 0%; margin-bottom: 0.07in; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial; font-style: normal;" lang="en-US"><span style="color: #000000;"><span style="font-family: Courier New,monospace;"><span style="font-size: medium;">I have 10 cat(s)</span></span></span></pre>
<p class="western" style="margin-bottom: 0.07in;"><span style="font-size: medium;"><span style="color: #000000;"><span style="font-family: Palatino Linotype,serif;"><span lang="en-US"><span style="font-style: normal;">Using the </span></span></span></span><span style="color: #000000;"><span style="font-family: Palatino Linotype,serif;"><span lang="en-US"><span style="font-style: normal;"><strong>sign</strong></span></span></span></span><span style="color: #000000;"><span style="font-family: Palatino Linotype,serif;"><span lang="en-US"><span style="font-style: normal;"> specifier</span></span></span></span></span></p>
<p class="western" style="margin-bottom: 0.07in;" lang="en-US"><span style="color: #000000;"><span style="font-family: Courier New,monospace;"><span style="font-size: medium;">$string = &#8216;cat&#8217;;<br />
$integer = &#8217;10&#8242;;<br />
echo sprintf(&#8220;Dagger has a %+d against %ss&#8221;, $integer, $string);</span></span></span></p>
<pre style="background: #c0c0c0 none repeat scroll 0%; margin-bottom: 0.07in; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial; font-style: normal;" lang="en-US"><span style="color: #000000;"><span style="font-family: Courier New,monospace;"><span style="font-size: medium;">Dagger has a +10 against cats</span></span></span></pre>
<p class="western" style="margin-bottom: 0.07in;"><span style="font-size: medium;"><span style="color: #000000;"><span style="font-family: Palatino Linotype,serif;"><span lang="en-US"><span style="font-style: normal;">Using </span></span></span></span><span style="color: #000000;"><span style="font-family: Palatino Linotype,serif;"><span lang="en-US"><span style="font-style: normal;"><strong>padding</strong></span></span></span></span><span style="color: #000000;"><span style="font-family: Palatino Linotype,serif;"><span lang="en-US"><span style="font-style: normal;"> and </span></span></span></span><span style="color: #000000;"><span style="font-family: Palatino Linotype,serif;"><span lang="en-US"><span style="font-style: normal;"><strong>width</strong></span></span></span></span><span style="color: #000000;"><span style="font-family: Palatino Linotype,serif;"><span lang="en-US"><span style="font-style: normal;"> specifiers (default </span></span></span></span><span style="color: #000000;"><span style="font-family: Palatino Linotype,serif;"><span lang="en-US"><span style="font-style: normal;"><strong>padding</strong></span></span></span></span><span style="color: #000000;"><span style="font-family: Palatino Linotype,serif;"><span lang="en-US"><span style="font-style: normal;"> specifier of a space)</span></span></span></span></span></p>
<p class="western" style="margin-bottom: 0.07in;" lang="en-US"><span style="color: #000000;"><span style="font-family: Courier New,monospace;"><span style="font-size: medium;">$string = &#8216;cat&#8217;; // length, 3 characters<br />
echo &#8216;&lt;pre&gt;&#8217;; // HTML Required to display the formating properly<br />
echo sprintf(&#8220;3 spaces added: |%6s&#8221;, $string);<br />
// Used padding of 6 characters, 6 – 3 = 3 spaces padded</span></span></span></p>
<pre style="background: #c0c0c0 none repeat scroll 0%; margin-bottom: 0.07in; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial; font-style: normal;" lang="en-US"><span style="color: #000000;"><span style="font-family: Courier New,monospace;"><span style="font-size: medium;">Pad from line 3 spaces: |   cat</span></span></span></pre>
<p class="western" style="margin-bottom: 0.07in;"><span style="font-size: medium;"><span style="color: #000000;"><span style="font-family: Palatino Linotype,serif;"><span lang="en-US"><span style="font-style: normal;">Using </span></span></span></span><span style="color: #000000;"><span style="font-family: Palatino Linotype,serif;"><span lang="en-US"><span style="font-style: normal;"><strong>padding</strong></span></span></span></span><span style="color: #000000;"><span style="font-family: Palatino Linotype,serif;"><span lang="en-US"><span style="font-style: normal;"> and </span></span></span></span><span style="color: #000000;"><span style="font-family: Palatino Linotype,serif;"><span lang="en-US"><span style="font-style: normal;"><strong>width</strong></span></span></span></span><span style="color: #000000;"><span style="font-family: Palatino Linotype,serif;"><span lang="en-US"><span style="font-style: normal;"> using a zero ( 0 ) for padding</span></span></span></span></span></p>
<p class="western" style="margin-bottom: 0.07in;" lang="en-US"><span style="color: #000000;"><span style="font-family: Courier New,monospace;"><span style="font-size: medium;">$month = 12;<br />
$day = 1;<br />
$year = 1980;<br />
echo sprintf (&#8221; Date: %02d/%02d/%04d.&#8221;, $month, $day, $year);<br />
$year = 80;<br />
echo sprintf (&#8221; Date: %02d/%02d/%04d.&#8221;, $month, $day, $year);</span></span></span></p>
<pre style="background: #c0c0c0 none repeat scroll 0%; margin-bottom: 0.07in; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial; font-style: normal;" lang="en-US"><span style="color: #000000;"><span style="font-family: Courier New,monospace;"><span style="font-size: medium;">Date: 12/01/1980. Date: 12/01/0080.</span></span></span></pre>
<p class="western" style="margin-bottom: 0.07in;"><span style="font-size: medium;"><span style="color: #000000;"><span style="font-family: Palatino Linotype,serif;"><span lang="en-US"><span style="font-style: normal;">Using </span></span></span></span><span style="color: #000000;"><span style="font-family: Palatino Linotype,serif;"><span lang="en-US"><span style="font-style: normal;"><strong>padding</strong></span></span></span></span><span style="color: #000000;"><span style="font-family: Palatino Linotype,serif;"><span lang="en-US"><span style="font-style: normal;"><span> and </span></span></span></span></span><span style="color: #000000;"><span style="font-family: Palatino Linotype,serif;"><span lang="en-US"><span style="font-style: normal;"><strong>width</strong></span></span></span></span><span style="color: #000000;"><span style="font-family: Palatino Linotype,serif;"><span lang="en-US"><span style="font-style: normal;"><span> using a custom character, the asterisk ( * )</span></span></span></span></span></span></p>
<p class="western" style="margin-bottom: 0.07in;" lang="en-US"><span style="color: #000000;"><span style="font-family: Courier New,monospace;"><span style="font-size: medium;">$endofpassword = &#8216;word&#8217;;<br />
$output = sprintf(&#8220;Your password: %&#8217;*8s&#8221;, $endofpassword);<br />
echo $output;</span></span></span></p>
<pre style="background: #c0c0c0 none repeat scroll 0%; margin-bottom: 0.07in; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial; font-style: normal;" lang="en-US"><span style="color: #000000;"><span style="font-family: Courier New,monospace;"><span style="font-size: medium;">Your password: ****word</span></span></span></pre>
<p class="western" style="margin-bottom: 0.07in;"><span style="font-size: medium;"><span style="color: #000000;"><span style="font-family: Palatino Linotype,serif;"><span lang="en-US"><span style="font-style: normal;">Using </span></span></span></span><span style="color: #000000;"><span style="font-family: Palatino Linotype,serif;"><span lang="en-US"><span style="font-style: normal;"><strong>padding</strong></span></span></span></span><span style="color: #000000;"><span style="font-family: Palatino Linotype,serif;"><span lang="en-US"><span style="font-style: normal;">, </span></span></span></span><span style="color: #000000;"><span style="font-family: Palatino Linotype,serif;"><span lang="en-US"><span style="font-style: normal;"><strong>alignment</strong></span></span></span></span><span style="color: #000000;"><span style="font-family: Palatino Linotype,serif;"><span lang="en-US"><span style="font-style: normal;"> (left), and </span></span></span></span><span style="color: #000000;"><span style="font-family: Palatino Linotype,serif;"><span lang="en-US"><span style="font-style: normal;"><strong>width</strong></span></span></span></span></span></p>
<p class="western" style="margin-bottom: 0.07in;" lang="en-US"><span style="color: #000000;"><span style="font-family: Courier New,monospace;"><span style="font-size: medium;">$endofpassword = &#8216;word&#8217;;<br />
$output = sprintf(&#8220;Your password: %&#8217;*-8s&#8221;, $endofpassword);<br />
echo $output;</span></span></span></p>
<pre style="background: #c0c0c0 none repeat scroll 0%; margin-bottom: 0.07in; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial; font-style: normal;" lang="en-US"><span style="color: #000000;"><span style="font-family: Courier New,monospace;"><span style="font-size: medium;">Your password: word****</span></span></span></pre>
<p class="western" style="margin-bottom: 0.07in;"><span style="font-size: medium;"><span style="color: #000000;"><span style="font-family: Palatino Linotype,serif;"><span lang="en-US"><span style="font-style: normal;">Using the </span></span></span></span><span style="color: #000000;"><span style="font-family: Palatino Linotype,serif;"><span lang="en-US"><span style="font-style: normal;"><strong>precision</strong></span></span></span></span><span style="color: #000000;"><span style="font-family: Palatino Linotype,serif;"><span lang="en-US"><span style="font-style: normal;"><span> specifier</span></span></span></span></span></span></p>
<p class="western" style="margin-bottom: 0.07in;" lang="en-US"><span style="color: #000000;"><span style="font-family: Courier New,monospace;"><span style="font-size: medium;">$scientific = 1.2e3;<br />
echo sprintf(&#8220;Three decimal places: %.3e&#8221;, $scientific);</span></span></span></p>
<pre style="background: #c0c0c0 none repeat scroll 0%; margin-bottom: 0.07in; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial; font-style: normal;" lang="en-US"><span style="color: #000000;"><span style="font-family: Courier New,monospace;"><span style="font-size: medium;">Three decimal places: 1.200e+3</span></span></span></pre>
<p class="western" style="margin-bottom: 0.07in;" lang="en-US"><span style="color: #000000;"><span style="font-family: Courier New,monospace;"><span style="font-size: medium;">$float = 1.2e3;<br />
echo sprintf(&#8220;Two decimal places: %.2f&#8221;, $float);</span></span></span></p>
<pre style="background: #c0c0c0 none repeat scroll 0%; margin-bottom: 0.07in; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial; font-style: normal;" lang="en-US"><span style="color: #000000;"><span style="font-family: Courier New,monospace;"><span style="font-size: medium;">Two decimal places: 1200.00</span></span></span></pre>
<p class="western" style="margin-bottom: 0.07in;" lang="en-US"><span style="color: #000000;"><span style="font-family: Courier New,monospace;"><span style="font-size: medium;">$string = &#8216;Hello World!&#8217;;<br />
echo sprintf(&#8220;Cut-off after 4 characters: %.4s&#8221;, $string);</span></span></span></p>
<pre style="background: #c0c0c0 none repeat scroll 0%; margin-bottom: 0.07in; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial; font-style: normal;" lang="en-US"><span style="color: #000000;"><span style="font-family: Courier New,monospace;"><span style="font-size: medium;">Cut-off after 4 characters: Hell</span></span></span></pre>
<p class="western" style="margin-bottom: 0.07in;" lang="en-US"><span style="color: #000000;"><span style="font-family: Palatino Linotype,serif;"><span style="font-size: medium;"><em>See Also:</em></span></span></span></p>
<p class="western" style="margin-bottom: 0.07in;"><span style="font-size: medium;"><span style="color: #000000;"><span style="font-family: Palatino Linotype,serif;"><span lang="en-US"><span style="font-style: normal;"><strong>printf() –</strong></span></span></span></span><span style="color: #000000;"><span style="font-family: Palatino Linotype,serif;"><span lang="en-US"><span style="font-style: normal;"><span> prints a formatted string results rather than simply returning them<br />
</span></span></span></span></span><span style="color: #000000;"><span style="font-family: Palatino Linotype,serif;"><span lang="en-US"><span style="font-style: normal;"><strong>sscanf() –</strong></span></span></span></span><span style="color: #000000;"><span style="font-family: Palatino Linotype,serif;"><span lang="en-US"><span style="font-style: normal;"><span> Parses a string through a formatted string, reverse of </span></span></span></span></span><span style="color: #000000;"><span style="font-family: Palatino Linotype,serif;"><span lang="en-US"><span style="font-style: normal;"><strong>sprintf()</strong></span></span></span></span></span></p>
<p class="western" style="margin-bottom: 0.07in;" align="center">
<p class="western" style="background: transparent none repeat scroll 0%; margin-bottom: 0.07in; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial;">
<p class="western" style="background: transparent none repeat scroll 0%; margin-bottom: 0.07in; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial;">
<p class="western" style="background: transparent none repeat scroll 0%; margin-bottom: 0.07in; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial;">
]]></content:encoded>
			<wfw:commentRss>http://www.phpreferencebook.com/samples/sprintf-function/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
