<?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>simplexml &#8211; SMsoft &#8211; informatica e dintorni</title>
	<atom:link href="https://blog.smsoft.it/tag/simplexml/feed/" rel="self" type="application/rss+xml" />
	<link>https://blog.smsoft.it</link>
	<description>consigli settimanali su MacOS, GNU/Linux ed Open Source</description>
	<lastBuildDate>Tue, 16 Sep 2014 09:30:40 +0000</lastBuildDate>
	<language>it-IT</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=82326</generator>
	<item>
		<title>PHP: convertire una stringa XML in un array</title>
		<link>https://blog.smsoft.it/2014/09/16/php-convertire-una-stringa-xml-in-un-array/</link>
					<comments>https://blog.smsoft.it/2014/09/16/php-convertire-una-stringa-xml-in-un-array/#respond</comments>
		
		<dc:creator><![CDATA[admin]]></dc:creator>
		<pubDate>Tue, 16 Sep 2014 09:30:40 +0000</pubDate>
				<category><![CDATA[Html e PHP]]></category>
		<category><![CDATA[Open Source]]></category>
		<category><![CDATA[array]]></category>
		<category><![CDATA[json]]></category>
		<category><![CDATA[simplexml]]></category>
		<category><![CDATA[xml]]></category>
		<guid isPermaLink="false">http://blog.smsoft.it/?p=2882</guid>

					<description><![CDATA[Presupponiamo di avere una stringa XML (recuperata da un SOAP o in qualsiasi altro modo) e che ci occorra trasformarla in un array per poterci lavorare meglio. Con tre righe di codice PHP si può fare: [crayon-6a41b89c08335345070959/] enjoy!]]></description>
										<content:encoded><![CDATA[<p>Presupponiamo di avere una stringa XML (recuperata da un SOAP o in qualsiasi altro modo) e che ci occorra trasformarla in un array per poterci lavorare meglio. Con tre righe di codice PHP si può fare:</p>
<p></p><pre class="urvanov-syntax-highlighter-plain-tag">//$content è la stringa XML
$xml = simplexml_load_string($content);
$json = json_encode($xml);
$array = json_decode($json,TRUE);
//$array è il nostro array</pre><p></p>
<p>enjoy!</p>
]]></content:encoded>
					
					<wfw:commentRss>https://blog.smsoft.it/2014/09/16/php-convertire-una-stringa-xml-in-un-array/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
	</channel>
</rss>
