<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	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/"
		>
<channel>
	<title>Comments on: How to print or output the contents of a PHP Array.</title>
	<atom:link href="http://www.dbuggr.com/smallwei/printing-contents-php-array/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.dbuggr.com/smallwei/printing-contents-php-array/</link>
	<description>Share Knowledge &#38; Be Rewarded</description>
	<lastBuildDate>Fri, 03 Feb 2012 23:13:48 -0600</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8.6</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<xhtml:meta xmlns:xhtml="http://www.w3.org/1999/xhtml" name="robots" content="noindex" />
	<item>
		<title>By: smallwei</title>
		<link>http://www.dbuggr.com/smallwei/printing-contents-php-array/comment-page-1/#comment-146</link>
		<dc:creator>smallwei</dc:creator>
		<pubDate>Tue, 27 Oct 2009 21:01:26 +0000</pubDate>
		<guid isPermaLink="false">http://www.dbuggr.com/smallwei/printing-contents-php-array/#comment-146</guid>
		<description>This is a common task for every php developer. You can simply use the following function:

&lt;code&gt;       print_r($myarray);&lt;/code&gt;

This will give you a listing of all the items in the array. (Including multi-dimensional arrays).

&lt;strong&gt;For example:&lt;/strong&gt;

&lt;code&gt;&lt;?php
 &#039;Adam&#039;, &#039;b&#039; =&gt; &#039;Bruce&#039;, &#039;c&#039; =&gt; array (&#039;Chris&#039;, &#039;Cathy&#039;));
    print_r ($Names);
?&gt;&lt;/code&gt;

The results would be something like:

&lt;code&gt;Array (
            [a] =&gt; Adam
            [b] =&gt; Bruch
            [c] =&gt; Array (
                                  [0] =&gt; Chris
                                  [1] =&gt; Cathy
                       )
)&lt;/code&gt;</description>
		<content:encoded><![CDATA[<p>This is a common task for every php developer. You can simply use the following function:</p>
<p><code>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; print_r($myarray);</code></p>
<p>This will give you a listing of all the items in the array. (Including multi-dimensional arrays).</p>
<p><strong>For example:</strong></p>
<p><pre><code>&lt;?php
 &#039;Adam&#039;, &#039;b&#039; =&gt; &#039;Bruce&#039;, &#039;c&#039; =&gt; array (&#039;Chris&#039;, &#039;Cathy&#039;));
&nbsp;&nbsp;&nbsp;&nbsp;print_r ($Names);
?&gt;</code></pre></p>
<p>The results would be something like:</p>
<p><pre><code>Array (
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;[a] =&gt; Adam
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;[b] =&gt; Bruch
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;[c] =&gt; Array (
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;[0] =&gt; Chris
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;[1] =&gt; Cathy
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; )
)</code></pre></p>
]]></content:encoded>
	</item>
</channel>
</rss>
<!-- WP Super Cache is installed but broken. The path to wp-cache-phase1.php in wp-content/advanced-cache.php must be fixed! -->
