<?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; php</title>
	<atom:link href="http://www.phpreferencebook.com/tag/php/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.phpreferencebook.com</link>
	<description>PHP Reference: Beginner to Intermediate PHP5</description>
	<lastBuildDate>Thu, 29 Sep 2011 03:50:14 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=</generator>
		<item>
		<title>Seven Downloads for Young Web Developers</title>
		<link>http://www.phpreferencebook.com/misc/php-download-beginner-web-developer/</link>
		<comments>http://www.phpreferencebook.com/misc/php-download-beginner-web-developer/#comments</comments>
		<pubDate>Mon, 16 Feb 2009 14:54:27 +0000</pubDate>
		<dc:creator>Mario Lurig</dc:creator>
				<category><![CDATA[Miscellaneous]]></category>
		<category><![CDATA[MySQL]]></category>
		<category><![CDATA[php]]></category>
		<category><![CDATA[SEO]]></category>

		<guid isPermaLink="false">http://www.phpreferencebook.com/?p=121</guid>
		<description><![CDATA[There are tons of books and tutorials on PHP, MySQL, Zend, and SEO on store shelves. There are even more resources found only on the internet. Sometimes you need something in the middle, content you can download legally and keep handy when you are offline. Below are a few completely free resources that most beginner [...]]]></description>
			<content:encoded><![CDATA[<p>There are tons of books and tutorials on PHP, MySQL, Zend, and SEO on store shelves. There are even more resources found only on the internet. Sometimes you need something in the middle, content you can download legally and keep handy when you are offline. Below are a few completely free resources that most beginner or intermediate web developers (even if you do it just for yourself) will find useful.</p>
<h3>PHP</h3>
<p><strong><em>1)</em> PHP Reference: Beginner to Intermediate PHP5</strong></p>
<p><em>Shameless self-promotion.</em> A reference for many of the functions within PHP that serves as a quick go-to resource for checking syntax and remembering the nuances of many of the functions. It is available as a <a href="http://www.phpreferencebook.com/">PHP book</a> you can purchase in print, however the entire book is released under creative commons and available as a <a href="http://www.phpreferencebook.com/pdf">PHP reference PDF</a>.</p>
<p><strong><em>2)</em> Object Oriented PHP Tutorial in PDF</strong></p>
<p>Provided by killerphp.com and Stefan Mischook, this is a PDF version of his article on the topic of object orientated programming in PHP. It gives a conversational explanation to the basics. More information and the <a href="http://www.killerphp.com/articles/object-oriented-php-tutorial-in-pdf/">OOP PHP PDF</a> is available over on <a href="http://www.killerphp.com">killerphp.com</a>.</p>
<p><strong><em>3)</em> Zend Framework: Surviving the Deep End</strong></p>
<p>The Zend Framework can help developers organize and write more efficient PHP code for large projects and has become one of the top frameworks used online today. <em>From the page&#8230;</em><br />
<blockquote>&#8220;The book was written to guide readers through the metaphorical &#8216;Deep End&#8217;. It&#8217;s the place you find yourself in when you complete a few tutorials and scan through the Reference Guide, where you are buried in knowledge up to your neck but without a clue about how to bind it all together effectively into an application.&#8221;</p></blockquote>
<p> While available online, there is a link to downloading the PDF version in the bottom right. Check out the <a href="http://www.survivethedeepend.com/">Zend Framework survival guide</a>.</p>
<h3>HTML, CSS, AJAX</h3>
<p><strong><em>4)</em> The Woork Handbook</strong></p>
<p>Another compilation of online articles compiled and organized as an offline document. <em>From the page&#8230;</em><br />
<blockquote>&#8220;The Woork Handbook is a free eBook about CSS, HTML, Ajax, web programming, Mootools, Scriptaculous and other topics about web design&#8230; directly from Woork!&#8221;</p></blockquote>
<p> This isn&#8217;t a full study of any single topic, but is filled with tidbits. Grab the <a href="http://woork.blogspot.com/2009/01/woork-handbook.html">Woork Handbook</a>.</p>
<p><strong><em>5)</em> Added Bytes Cheat Sheets (formerly ILoveJackDaniels)</strong></p>
<p>While the site&#8217;s name has changed, the great resources have not. Cheat sheets are designed to cram (in a useful way) tons of information into the front and back of an 8.5&#8243; x 11&#8243; sheet of paper. There is little excuse for not keeping these handy. Grab the <a href="http://www.addedbytes.com/cheat-sheets/">cheat sheets</a> for HTML, CSS, RegEx, Mod_Rewrite, and more.</p>
<h3>MySQL</h3>
<p><strong><em>6)</em> MySQL Manual</strong></p>
<p>All MySQL documentation is available as a downloadable file. Choose from various options for the <a href="http://dev.mysql.com/doc/">MySQL documentation</a>.<br />
<strong><em>Editor&#8217;s Note: </strong>I had trouble finding a good, free, legal resource for MySQL that wasn&#8217;t hyper specific and was user friendly. I hope others have suggestions they can leave in the comments.</em></p>
<h3>SEO (Search Engine Optimization)</h3>
<p><strong><em>7)</em> Beginner&#8217;s Guide to Search Engine Optimization</strong></p>
<p>SEOMoz.org is an amazing website for learning the complex world of SEO with a very clear, user-friendly tone. Besides that, they offer a bunch of tools for helping your new website get better in the eyes of search engines (aka Google). Available as HTML, MS Word, or an OpenOffice document, you can get a copy of the <a href="http://www.seomoz.org/article/beginners-guide-to-search-engine-optimization">Beginner&#8217;s Guide to Search Engine Optimization</a> over on <a href="http://www.seomoz.org/">SEOMoz.org</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.phpreferencebook.com/misc/php-download-beginner-web-developer/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Formatting Characters</title>
		<link>http://www.phpreferencebook.com/tips/formatting-characters/</link>
		<comments>http://www.phpreferencebook.com/tips/formatting-characters/#comments</comments>
		<pubDate>Fri, 01 Aug 2008 13:31:43 +0000</pubDate>
		<dc:creator>Mario Lurig</dc:creator>
				<category><![CDATA[Tips]]></category>
		<category><![CDATA[backspace]]></category>
		<category><![CDATA[carriage return]]></category>
		<category><![CDATA[formatting characters]]></category>
		<category><![CDATA[new line]]></category>
		<category><![CDATA[newline]]></category>
		<category><![CDATA[php]]></category>
		<category><![CDATA[php5]]></category>
		<category><![CDATA[tab]]></category>

		<guid isPermaLink="false">http://www.phpreferencebook.com/?p=17</guid>
		<description><![CDATA[The rules and usage of formatting characters new line, carriage return, tab, and backspace within your PHP code including converting new line to the XHTML line break.]]></description>
			<content:encoded><![CDATA[<p>We&#8217;ve all seen them:</p>
<ul>
<li><strong>\n</strong> &#8211; new line</li>
<li><strong>\r</strong> &#8211; carriage return</li>
<li><strong>\t</strong> &#8211; tab</li>
<li><strong>\b</strong> &#8211; backspace</li>
</ul>
<p>But many wonder when to use them or more specifically, why they aren&#8217;t working as expected. So let&#8217;s address the basic usage and rules.</p>
<blockquote><p><em><strong>Rule #1:</strong> When using a formatting character in your code, it must be within &#8220;double quotations&#8221; otherwise it will be taken as a literal backslash and letter.</em></p></blockquote>
<p>When do you use it? When writing to a file with fwrite() or file_put_contents(), sending a text email with mail(), or when adding formatting to pre-populated data in the form element &lt;textarea&gt;.  Now, notice I made no mention of HTML output directly. While it&#8217;s possible to represent new line, tab, carriage return in HTML if it is within the preformatted tags &lt;pre&gt;&lt;/pre&gt;, in most cases these tags are not present and HTML will ignore these formatting characters.</p>
<blockquote><p><em><strong>Rule #2:</strong> Not all computer systems obey the formatting characters the same. When using \n (new line), also include a carriage return (\r) character.</em></p></blockquote>
<p>So what do you do if you have a paragraph, for instance submitted by a &lt;textarea&gt; form, that is preformatted and want it to display in the HTML with the \n (new line) breaks represented? That&#8217;s when you toss the string into the function nl2br(), which changes all \n to the xhtml line break &lt;br /&gt;.</p>
<p><strong>Example:</strong></p>
<p><code>echo nl2br("Hello\n\rWorld\n\r!!!");</code></p>
<p><strong>Results:</strong></p>
<p><code>Hello<br />
World<br />
!!!</code></p>
]]></content:encoded>
			<wfw:commentRss>http://www.phpreferencebook.com/tips/formatting-characters/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Sprintf() Tip</title>
		<link>http://www.phpreferencebook.com/tips/sprintf-tip/</link>
		<comments>http://www.phpreferencebook.com/tips/sprintf-tip/#comments</comments>
		<pubDate>Tue, 22 Jul 2008 06:44:39 +0000</pubDate>
		<dc:creator>Mario Lurig</dc:creator>
				<category><![CDATA[Tips]]></category>
		<category><![CDATA[php]]></category>
		<category><![CDATA[php5]]></category>
		<category><![CDATA[precision]]></category>
		<category><![CDATA[sprintf]]></category>
		<category><![CDATA[tip]]></category>

		<guid isPermaLink="false">http://www.phpreferencebook.com/?p=15</guid>
		<description><![CDATA[From the book: For MySQL security, you can use sprintf() to force user input to have a maximum length and be valid for the structure of your database. Use the precision specifier to automatically parse the string submitted by GET or POST.]]></description>
			<content:encoded><![CDATA[<p>From the book:</p>
<p style="margin-bottom: 0.07in;">
<p style="margin-bottom: 0.07in;"><span style="font-size: small;"><span style="font-family: Palatino Linotype,serif;">For MySQL security, you can use </span><span style="font-family: Palatino Linotype,serif;"><strong>sprintf()</strong></span><span style="font-family: Palatino Linotype,serif;"> to force user input to have a maximum length and be valid for the structure of your database. Use the </span><span style="font-family: Palatino Linotype,serif;"><strong>precision</strong></span><span style="font-family: Palatino Linotype,serif;"><span> specifier to automatically parse the string submitted by GET or POST.</span></span></span></p>
<p style="margin-bottom: 0.07in;"><span style="font-family: Palatino Linotype,serif;"><span style="font-size: x-small;"></span></span></p>
]]></content:encoded>
			<wfw:commentRss>http://www.phpreferencebook.com/tips/sprintf-tip/feed/</wfw:commentRss>
		<slash:comments>1</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>
		<item>
		<title>Language constructs vs functions in Control Structures</title>
		<link>http://www.phpreferencebook.com/clarifications/language-constructs-vs-functions-in-control-structures/</link>
		<comments>http://www.phpreferencebook.com/clarifications/language-constructs-vs-functions-in-control-structures/#comments</comments>
		<pubDate>Wed, 30 Apr 2008 05:30:56 +0000</pubDate>
		<dc:creator>Mario Lurig</dc:creator>
				<category><![CDATA[Clarifications]]></category>
		<category><![CDATA[Function]]></category>
		<category><![CDATA[include]]></category>
		<category><![CDATA[include_once]]></category>
		<category><![CDATA[language construct]]></category>
		<category><![CDATA[php]]></category>
		<category><![CDATA[php5]]></category>
		<category><![CDATA[require]]></category>
		<category><![CDATA[require_once]]></category>

		<guid isPermaLink="false">http://www.phpreferencebook.com/?p=11</guid>
		<description><![CDATA[require(), require_once(), include(), include_once() (pgs. 31-32) Throughout the noted pages and scattered in a few other places, the above four are referred to as functions, when technically they are considered language constructs. While minor, it should still be clarified. All the functionality and examples are accurate, just some terminology clarifications.]]></description>
			<content:encoded><![CDATA[<h3>require(), require_once(), include(), include_once()</h3>
<h4>(pgs. 31-32)</h4>
<p>Throughout the noted pages and scattered in a few other places, the above four are referred to as functions, when technically they are considered language constructs. While minor, it should still be clarified. All the functionality and examples are accurate, just some terminology clarifications.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.phpreferencebook.com/clarifications/language-constructs-vs-functions-in-control-structures/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>mysql_real_escape_string() vs addslashes()</title>
		<link>http://www.phpreferencebook.com/clarifications/mysql_real_escape_string-vs-addslashes/</link>
		<comments>http://www.phpreferencebook.com/clarifications/mysql_real_escape_string-vs-addslashes/#comments</comments>
		<pubDate>Wed, 30 Apr 2008 05:24:08 +0000</pubDate>
		<dc:creator>Mario Lurig</dc:creator>
				<category><![CDATA[Clarifications]]></category>
		<category><![CDATA[addslashes]]></category>
		<category><![CDATA[MySQL]]></category>
		<category><![CDATA[mysql_real_escape_string]]></category>
		<category><![CDATA[php]]></category>
		<category><![CDATA[php5]]></category>
		<category><![CDATA[security]]></category>
		<category><![CDATA[sql injection]]></category>

		<guid isPermaLink="false">http://www.phpreferencebook.com/?p=10</guid>
		<description><![CDATA[(pgs. 124-125) When describing the function mysql_real_escape_string(), the following note was included: Note: Performs the same functionality as addslashes(). While they are practically identical in their behavior, this is an oversimplification of the extra strength of mysql_real_escape_string(). At this point, I will pass on the following blog post that provides some extra insight into the [...]]]></description>
			<content:encoded><![CDATA[<h4>(pgs. 124-125)</h4>
<p>When describing the function <strong>mysql_real_escape_string()</strong>, the following note was included:</p>
<blockquote><p><em>Note: Performs the same functionality as <strong>addslashes()</strong>.</em></p></blockquote>
<p>While they are practically identical in their behavior, this is an oversimplification of the extra strength of <strong>mysql_real_escape_string()</strong>. At this point, I will pass on the following blog post that provides some extra insight into the comparison of the two variables:<a title="addslashes() Versus mysql_real_escape_string()" href="http://shiflett.org/blog/2006/jan/addslashes-versus-mysql-real-escape-string" target="_blank">addslashes() Versus mysql_real_escape_string()</a> by Chris Shiflett. I was not previously aware of this difference and security loophole.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.phpreferencebook.com/clarifications/mysql_real_escape_string-vs-addslashes/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>define() referenced in Global Variables</title>
		<link>http://www.phpreferencebook.com/clarifications/define-referenced-in-global-variables/</link>
		<comments>http://www.phpreferencebook.com/clarifications/define-referenced-in-global-variables/#comments</comments>
		<pubDate>Wed, 30 Apr 2008 05:03:14 +0000</pubDate>
		<dc:creator>Mario Lurig</dc:creator>
				<category><![CDATA[Clarifications]]></category>
		<category><![CDATA[define]]></category>
		<category><![CDATA[global]]></category>
		<category><![CDATA[php]]></category>
		<category><![CDATA[php5]]></category>
		<category><![CDATA[variables]]></category>

		<guid isPermaLink="false">http://www.phpreferencebook.com/?p=9</guid>
		<description><![CDATA[(pg. 33) The opening sentence for the Global Variables chapter reads as follows: While some global variables can be created through the use of define(), some are reserved because of a special function, giving access to different types of data. Technically, the define() function creates a constant that is available globally, as is described properly [...]]]></description>
			<content:encoded><![CDATA[<h3>(pg. 33)</h3>
<p>The opening sentence for the Global Variables chapter reads as follows:</p>
<blockquote><p>While some global variables can be created through the use of<br />
<strong>define()</strong>, some are reserved because of a special function, giving access to<br />
different types of data.</p></blockquote>
<p>Technically, the <strong>define()</strong> function creates a constant that is available globally, as is described properly as part of the function on page 11. Therefore, the sentence would be better phrased as follows:</p>
<blockquote><p>While some constants can be made available globally through the use of<br />
<strong>define()</strong>, some are reserved because of a special function, giving access to<br />
different types of data.</p></blockquote>
]]></content:encoded>
			<wfw:commentRss>http://www.phpreferencebook.com/clarifications/define-referenced-in-global-variables/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>$_SERVER[&#039;QUERY_STRING&#039;] in Global Variables</title>
		<link>http://www.phpreferencebook.com/corrections/_serverquery_string/</link>
		<comments>http://www.phpreferencebook.com/corrections/_serverquery_string/#comments</comments>
		<pubDate>Wed, 30 Apr 2008 04:50:37 +0000</pubDate>
		<dc:creator>Mario Lurig</dc:creator>
				<category><![CDATA[Corrections]]></category>
		<category><![CDATA[$_SERVER]]></category>
		<category><![CDATA[global]]></category>
		<category><![CDATA[php]]></category>
		<category><![CDATA[php5]]></category>
		<category><![CDATA[query string]]></category>
		<category><![CDATA[query_string]]></category>
		<category><![CDATA[variables]]></category>

		<guid isPermaLink="false">http://www.phpreferencebook.com/?p=8</guid>
		<description><![CDATA[(pg. 33) The description in the book reads: $_SERVER['QUERY_STRING'] – The current scripts path This description is the same as the entry above, because I made a bad edit (copy/paste for formatting). The correct description would be as follows: $_SERVER['QUERY_STRING'] – The current query string (without the question mark) The example is correct and accurate, [...]]]></description>
			<content:encoded><![CDATA[<h3>(pg. 33)</h3>
<p>The description in the book reads:</p>
<blockquote><p>$_SERVER['QUERY_STRING'] – The current scripts path</p></blockquote>
<p>This description is the same as the entry above, because I made a bad edit (copy/paste for formatting). The correct description would be as follows:</p>
<blockquote><p>$_SERVER['QUERY_STRING'] – The current query string (without the question mark)</p></blockquote>
<p>The example is correct and accurate, and luckily this is painfully obvious thanks to the name of the key <em>QUERY_STRING </em>in the $_SERVER array.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.phpreferencebook.com/corrections/_serverquery_string/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

