<?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[[Stringhe] implode();]]></title><description><![CDATA[<p dir="auto"><em><strong>PHP 4, 5</strong></em><br />
<em>Sintassi</em>: string <em><strong>implode</strong></em> ( string <em><strong>$separatore</strong></em> , array <em><strong>$array</strong></em> )</p>
<p dir="auto"><em><strong>implode</strong></em> è una funzione di PHP che unisce, nell'ordine, gli elementi di un array per formare un'unica stringa, inserendo la stringa <em>$separatore</em> tra un elemento e l'altro.</p>
<pre><code class="language-php">&lt;?
$array = array ( "testo1", "testo2", "testo3" );
$string = implode (",", $array);
echo $string; // risultato: testo1,testo2,testo3
?&gt;
</code></pre>
<p dir="auto">L'ordine dei parametri non è obbligatorio, ma per comodità di associazione con la funzione, inversa, <a href="http://www.giorgiotave.it/forum/funzioni-di-php/68428-stringhe-explode.html" rel="nofollow ugc">explode();</a> è consigliabile mantenere quello della sintassi.<br />
Dalla versione 4.3.0 il parametro <em>$separatore</em> è opzionale, difatti, qualora non venga specificato, verrà utilizzata di default un stringa vuota come separatore:</p>
<pre><code class="language-php">&lt;?
$array = array ( "testo1", "testo2", "testo3" );
$string = implode ($array);
echo $string; // risultato: testo1testo2testo3
?&gt;
</code></pre>
]]></description><link>https://dev.connect.gt/topic/62223/stringhe-implode</link><generator>RSS for Node</generator><lastBuildDate>Fri, 04 Dec 2026 11:39:04 GMT</lastBuildDate><atom:link href="https://dev.connect.gt/topic/62223.rss" rel="self" type="application/rss+xml"/><pubDate>Fri, 01 Feb 2008 23:42:53 GMT</pubDate><ttl>60</ttl></channel></rss>