<?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; print_r</title>
	<atom:link href="http://www.phpreferencebook.com/tag/print_r/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.phpreferencebook.com</link>
	<description>PHP Reference: Beginner to Intermediate PHP5</description>
	<lastBuildDate>Wed, 25 Aug 2010 12:58:18 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=abc</generator>
		<item>
		<title>Print_r optional parameter correction</title>
		<link>http://www.phpreferencebook.com/corrections/print_r-return-parameter/</link>
		<comments>http://www.phpreferencebook.com/corrections/print_r-return-parameter/#comments</comments>
		<pubDate>Wed, 14 Jan 2009 05:21:35 +0000</pubDate>
		<dc:creator>Mario Lurig</dc:creator>
				<category><![CDATA[Corrections]]></category>
		<category><![CDATA[print_r]]></category>

		<guid isPermaLink="false">http://www.phpreferencebook.com/?p=81</guid>
		<description><![CDATA[(pg. 38) In the book, the print_r() function is described as follows: print_r($variable) Output the contents of $variable . Typically used to display the contents of an array. However, there is also an optional flag for the print_r() function that makes the function return the output rather than printing it to the screen. Therefore, the [...]]]></description>
			<content:encoded><![CDATA[<h3>(pg. 38)</h3>
<p>In the book, the print_r() function is described as follows:</p>
<div style="color: #ffffff; background-color:#000;">print_r($variable)</div>
<p><span style="background-color: #DDD;">Output the contents of <strong>$variable</strong> . Typically used to display the contents of an array.</p>
<p></span></p>
<p>However, there is also an optional flag for the print_r() function that makes the function return the output rather than printing it to the screen. Therefore, the section of the book should be amended as follows:</p>
<div style="color: #ffffff; background-color:#000;">print_r($variable [,<em>return</em>])</div>
<p><span style="background-color: #DDD;"><em>return</em> – [optional] <strong>$boolean</strong> <em>default:</em> FALSE, print output<br />
Output the contents of <strong>$variable</strong>. Typically used to display the contents of an array. If <em>return</em> is set to TRUE, print_r() returns the output rather than displaying it, such as when storing it in a variable.</p>
<p></span></p>
]]></content:encoded>
			<wfw:commentRss>http://www.phpreferencebook.com/corrections/print_r-return-parameter/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
