<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title><![CDATA[Config Array Element]]></title><description><![CDATA[<p dir="auto">Why does [installedpackages] [unbound] [config] contain an additional offset zero [ 0 ] array element in the $config array, even though it does not seem to exist in the config xml?</p>
<p dir="auto">/etc/services.inc<br />
print_r ($config['installedpackages']['unbound']);</p>
<pre><code>
Array ( [config] =&gt; Array ( [0] =&gt; Array ( [unbound_status] =&gt; on [active_interface] =&gt; lan [dnssec_status] =&gt; [forwarding_mode] =&gt; on [private_address] =&gt; [regdhcpstatic] =&gt; on [txtsupport] =&gt; [dumpcache] =&gt; [stats] =&gt; [stats_interval] =&gt; [cumulative_stats] =&gt; [extended_stats] =&gt; ) ) ) 

</code></pre>
<p dir="auto">Config XML:</p>
<pre><code>
 &lt;pfsense&gt;&lt;version&gt;8.0&lt;/version&gt;
	.
	.
	.
	 &lt;installedpackages&gt;&lt;package&gt;&lt;name&gt;Unbound&lt;/name&gt;
			.
			.
			.&lt;/package&gt; 
		 &lt;unbound&gt;&lt;config&gt;&lt;unbound_status&gt;on&lt;/unbound_status&gt;
				.
				.
				.&lt;/config&gt;&lt;/unbound&gt; 
		.
		.
		.&lt;/installedpackages&gt;&lt;/pfsense&gt; 

</code></pre>
]]></description><link>https://forum.netgate.com/topic/37639/config-array-element</link><generator>RSS for Node</generator><lastBuildDate>Mon, 09 Nov 2026 08:04:42 GMT</lastBuildDate><atom:link href="https://forum.netgate.com/topic/37639.rss" rel="self" type="application/rss+xml"/><pubDate>Sun, 25 Sep 2011 20:11:59 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Config Array Element on Mon, 26 Sep 2011 18:13:35 GMT]]></title><description><![CDATA[<p dir="auto">All packages work that way. &lt;config&gt;is an array inside of a package like that. It's interpreted by the XML parser as an array, so it gets an array index.</p>
<p dir="auto">Some packages have multiple configs (multiple tabs, etc) and rely on that.&lt;/config&gt;</p>
]]></description><link>https://forum.netgate.com/post/297743</link><guid isPermaLink="true">https://forum.netgate.com/post/297743</guid><dc:creator><![CDATA[jimp]]></dc:creator><pubDate>Mon, 26 Sep 2011 18:13:35 GMT</pubDate></item></channel></rss>